[GiNaC-list] table and exhashmap

Sheplyakov Alexei varg at theor.jinr.ru
Mon Feb 19 07:03:22 CET 2007


On Mon, Feb 19, 2007 at 01:58:10AM +0800, Jerome BENOIT wrote:

> I am afraid I have to specify my request:
> by function I meant GiNaC function
> (the one declared with DECLARE_FUNCTION_<N>P).

What about a list (GiNaC::lst) of relational objects, e.g.

static ex eval_foo(const ex& x, const ex& y)
	lst l;
	l = x == x + y/2, y == cos(x);
	return l;
REGISTER_FUNCTION(foo, eval_func(eval_foo))

> As the object exmap (or exhashmap<T>) is no an ex object,
> it cannot be returned by such a function.

Exactly, since most operations with expressions do not make any sense
for associative arrays. So I wonder why you want to treat associative
arrays as expressions.

Best regards,

All science is either physics or stamp collecting.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
Url : http://www.cebix.net/pipermail/ginac-list/attachments/20070219/aa6c5f1e/attachment.pgp

More information about the GiNaC-list mailing list