Re: [ROOT] Complex Matrix, Complex Vector

From: Jacek M. Holeczek (holeczek@us.edu.pl)
Date: Wed May 16 2001 - 16:40:22 MEST


Hi,
> I encourage people to comment
You asked for it.
I took a look into gluing Blitz++ with root(cint).
I think there may be a major problem here.
As far as I understand, CINT requires that templates are instantiated.
In Blitz++, however, "it is not possible to do explicit instantiation of
Blitz++ arrays". "The reason is that explicit instantiation results in all
members of a class template being instantiated. This is not the case for
implicit instantiation, in which only required members are instantiated.
The Array<T,N> class contains members which are not valid for all types
T: for example, the binary AND operation &= is nonsensical if T=float.
If you attempt to explicitly instantiate an array class, e.g.
	template class Array<float,3>;
then you will be rewarded with many compile errors, due to methods such as
&= which are nonsensical for float."
Seems that Blitz++ is lost for ROOT/CINT, right ?
Best regards,
Jacek.



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:45 MET