[GiNaC-list] symbolic matrix
Luis Rivera
luis.rivera at laposte.net
Mon Jan 19 22:01:47 CET 2009
Hello Vladimir,
Thanks for your answer. Yes, if I use the code below it works.
Could you explain me in few words why it should be so?
Thanks,
Luis
New version:
###########
ex A;
A = symbolic_matrix(n,n, "A");
cout << "A(0,0) = " << ex_to<matrix>(A)(0,0) << endl;
cout << "A(0,1) = " << ex_to<matrix>(A)(0,1) << endl;
cout << "A(1,0) = " << ex_to<matrix>(A)(1,0) << endl;
cout << "A(1,1) = " << ex_to<matrix>(A)(1,1) << endl;
###########
------------------------------------------------------------------------------------
>>>>> On Mon, 19 Jan 2009 21:07:58 +0100 (CET), Luis Rivera <luis.rivera at laposte.net> >>said:
>> LR> I have some problem accessing the elements of a symbolic matrix.
>> LR> For example the code below creates a 2x2 symbolic matrix 'A' but
>> LR> I can't access the individual elements.
>>
> A similar question was asked here recently:
>
> http://www.ginac.de/pipermail/ginac-list/2008-November/001458.html
>
> see if its answer would work for you.
>
> Best wishes,
> Vladimir
Créez votre adresse électronique prenom.nom at laposte.net
1 Go d'espace de stockage, anti-spam et anti-virus intégrés.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.cebix.net/pipermail/ginac-list/attachments/20090119/af05516c/attachment.htm
More information about the GiNaC-list
mailing list