[GiNaC-list] write access to entries of submatrices [Was: multi
index storage of expressions]
Charlls Quarra
charlls_quarra at yahoo.com.ar
Tue Feb 20 00:56:30 CET 2007
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
More information about the GiNaC-list
mailing list