<div dir="ltr">Dear all,<div>I'm new to ginac, and very eager to learn more about it. I installed the latest (1.6.2) version on a recent (mountain lion 12.2.1) system, using the automatic packaging system 'homebrew'.</div>

<div><br></div><div>1. There must be a bug somewhere along the line, because the most naive, simple program from the manual (and all other examples I tried) cause a malloc error:</div><div>% cat x.C</div><div><div>#include <iostream></div>

<div>#include <ginac/ginac.h></div><div><br></div><div>int main()</div><div>{</div><div>  GiNaC::symbol v("v");</div><div>  std::cout << v << std::endl;</div><div>  return 0;</div><div>}</div>
<div style>
% g++ x.C -lginac && ./a.out</div><div style><div>v</div><div>a.out(31763) malloc: *** error for object 0x7fff7b419570: pointer being freed was not allocated</div><div>*** set a breakpoint in malloc_error_break to debug</div>

<div>Abort trap: 6</div><div><br></div><div style>2. Setting matrix entries causes crash:</div><div style>...</div><div style>  GiNaC::matrix m(10,10); m[1][2] = 1;</div><div style>...</div><div style>causes "libc++abi.dylib: terminate called throwing an exception"</div>

<div style><br></div><div style>3. I can't find the tensor product of matrices (aka Kronecker product) in the documentation. If M in an axb matrix and N is a cxd matrix, this would be the (ac)x(bd) matrix with entries the products of entries of M and N. While it's easy to implement myself, I'm surprised not to find it in the library. Did I miss something?</div>

<div style><br></div><div style>I'm not sure I know well how this mailing list works, so I'd appreciate a reply directly to my email address.</div><div style><br></div><div style>Thanks in advance,</div><div style>

Laurent</div></div>-- <br>Prof. Dr. Laurent Bartholdi   \ laurent.bartholdi<at>gmail<dot>com<br>G.-A. Universität zu Göttingen \ Phone: +49 551 39 7826<br>Bunsenstraße 3-5                \ Secr: +49 551 39 7752<br>

D-37073 Göttingen, Germany       \ Fax: +49 551 39 22674
</div></div>