Thank you for tips.<br>Let me try to figure it out myself first.<br><br><div><span class="gmail_quote">2007/2/1, Sheplyakov Alexei &lt;<a href="mailto:varg@theor.jinr.ru">varg@theor.jinr.ru</a>&gt;:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
Hi!<br><br>On Wed, Jan 31, 2007 at 10:16:56PM +0800, Zhongxing Xu wrote:<br><br>&gt; Is there something like array expression in GiNaC?<br><br>Could you elaborate, please? What is exactly &quot;array expression&quot;?<br>
<br>&gt; For example:<br>&gt; x = mem[2] + 2;<br>&gt; y = mem[i] -3;<br>&gt; Can GiNaC represent these expressions?<br>&gt; Note that array index might be a symbolic value.<br><br>GiNaC supports associative arrays with expressions as keys, 
i.e.<br><br>symbol x(&quot;x&quot;), y(&quot;y&quot;), z(&quot;z&quot;);<br>exmap m; // nothing really magic: std::map&lt;ex, ex, ex_is_less&gt;<br>m[z] = 2*x + y;<br>m[1] = sin(y);<br><br>&gt; x &gt;= 3;<br><br>Syntactically, this is correct GiNaC code. It creates object of
<br>the GiNaC::relational type. But I wonder what is _your_ interpretation...<br><br>&gt; After checking out the reference manual of GiNaC, I guess class idx and<br>&gt; varidx and indexed() is the thing for me. Is it right?
<br><br>I don&#39;t think so.<br><br>Best regards,<br> Alexei<br><br>--<br>All science is either physics or stamp collecting.<br><br><br><br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.3 (GNU/Linux)<br><br>iQIVAwUBRcDJebL3rFoFceCwAQLvdw//cTzW84BkgGzzrBxXDdLFnlD+2I3+JYL+
<br>qtAd9oJdr16XRF68GAFJa8fYgDFuiymKspaHzoxwkPQhTUeclezjNNR3NMGiSSxG<br>xpSNfEYXuPSQ+W6dgbmgAtScCTYl0hALgqEh9llE8zNT4K56iKW4U4D7k5Aw2YND<br>9NNlQk8jbqgtzHYO0ip92a0XJ/Y2iIIGGL7hdR9UWIzjqQF7sa1oTBhb/itRr48l<br>Bx3DoC7NtBqDJqjN4ZjZXIEVQ40ZRy6GimJMcph4pVND3ax3YmUMRmSlrL8OCFCJ
<br>3mLXf1zBvJljo2LwyfRFUWEmcf4UGkYSINrTdVUpiU6RBobA6IEVZP2IkEYtmr0w<br>vt/oeqiL7oIANNe72JGFVqIqExCLUNHtMTUx69rKjNd8FZn2hU31osRvFAIsfMbM<br>ClGBBjf1l19ZTGUGLkcPzWhK3sVLxIOHwuy5bAPyXllehZhI5AYS+4jigGxvsdap<br>S/iYDi+HVhteBygTXTUrBRyJY5CiV/Clwx5pTZnM1lgASRUoUM7dukF3BjwPgVVl
<br>VOtYdyC2+jOpW+dE0nXhdatHi4rce1WBhsZ67Ak/vcbWgGfK14K+6dV7VpLxaIU5<br>PQSTH0UBpTCzquhsxjVmmHcg9XdhxsfcKTsKlJvzTVRVdK/C44KcA81ebqyGE60l<br>fnOg5IER/CI=<br>=66N+<br>-----END PGP SIGNATURE-----<br><br><br>_______________________________________________
<br>GiNaC-list mailing list<br><a href="mailto:GiNaC-list@ginac.de">GiNaC-list@ginac.de</a><br><a href="https://www.cebix.net/mailman/listinfo/ginac-list">https://www.cebix.net/mailman/listinfo/ginac-list</a><br><br><br></blockquote>
</div><br>