20 Feb
2007
20 Feb
'07
12:56 a.m.
I just noted that the following write access attempt will fail: matrix foo(1 , 2); for (int i=0 ; i< 2 ; i++) { foo(0,i) = matrix(2,2); } ex_to<matrix>( foo(0,1) )(1,1) = 34; cout << "it was wrote -> " << ex_to<matrix>( foo( 0 , 1 ) )(1,1) << endl; i get a compilation error: passing 'const GiNaC::ex' as 'this' argument of 'GiNaC::ex& GiNaC::ex::operator=(const GiNaC::ex&)' discards qualifiers any idea how to write to the entries of a submatrix in this way? __________________________________________________ Preguntá. Respondé. Descubrí. Todo lo que querías saber, y lo que ni imaginabas, está en Yahoo! Respuestas (Beta). ¡Probalo ya! http://www.yahoo.com.ar/respuestas