20 Feb
2007
20 Feb
'07
7:58 a.m.
On Mon, Feb 19, 2007 at 11:38:20PM -0300, Charlls Quarra wrote:
ok i found that this awfully-looking hack does the job:
( *(matrix*) & ex_to<matrix>(foo(0,1)) )(1,1) = 34;
Ugh, this is plain EVIL.
im eager to find out what its the ginac-sanctioned way to do it though
As I explained in the previous mail, there is no way to assign anything to references returned by ex_to<T>. If you really need multidimensional arrays (and vector<matrix> or vector<vector<vector <ex> > > are not good enough) then GiNaC is not proper tool for your task. Best regards, Alexei -- All science is either physics or stamp collecting.