<BR>Hello,<BR><BR>I have some problem accessing the elements of a symbolic matrix.<BR>For example the code below creates a 2x2 symbolic matrix 'A'<BR>but I can't access the individual elements.<BR><BR>The output I get when I run the small program below is:<BR><BR>[luis@urubamba ~/GiNaC]#87 ./AA<BR>A(0,0) = [[A00,A01],[A10,A11]]<BR>matrix::operator(): index out of range<BR><BR>What am I making wrong?<BR><BR>Thanks for any hint.<BR><BR>Luis<BR><BR>#############################33<BR>#include <iostream><BR>#include <stdexcept><BR>#include <ginac/ginac.h><BR>using namespace std;<BR>using namespace GiNaC;<BR><BR>int main()<BR>{<BR>  int j,k,n=2;<BR>  try{<BR>        matrix A;<BR>        A = symbolic_matrix(n,n, "A");<BR>        cout << "A(0,0) = " << A(0,0) << endl;<BR>        cout << "A(0,1) = " << A(0,1) << endl;<BR>        cout << "A(1,0) = " << A(1,0) << endl;<BR>        cout << "A(1,1) = " << A(1,1) << endl;<BR>  }<BR>  catch (exception &z) {<BR>        cerr << z.what() << endl;<BR>        return 1;<BR>  }<BR>  return 0;<BR>}<BR>#########################<BR><BR><i><a style='color:#0000FF;text-decoration:underline' target=_blank href=http://www.laposte.net>Créez votre adresse</a> électronique prenom.nom@laposte.net<BR> 1 Go d'espace de stockage, anti-spam et anti-virus intégrés.</i><BR>