[GiNaC-list] specializing print function
Alexei Sheplyakov
varg at theor.jinr.ru
Sat Oct 4 10:58:59 CEST 2008
Hi,
On Sat, Oct 04, 2008 at 12:53:21AM -0700, nomad wrote:
> I am trying to define a new algebraic class the easy way.
@ developers:
I don't think writing a GiNaC class is 'hard'. Anyway, fiddling with
GiNaC::structure is not any easier. Hence I believe the documentation
is confusing in this regard and needs to be fixed.
> typedef structure<sprod_s> sprod;
>
> void sprod::print(const print_context & c, unsigned level) const
> {
> ...
> }
>
> How is this possible as structure<> already defines print() member function?
Oops. This is certainly documentation bug. Thanks for reporting it.
> Can someone give more specific details?
Write a normal GiNaC class (see doc/examples/mystring.cpp). It's not as
'hard' as the documentation implies.
Best regards,
Alexei
--
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/20081004/f2d86834/attachment.sig
More information about the GiNaC-list
mailing list