> Sorry, it seems the following feature does not exist:
>
> TinyMatrix<double,3,3> d2;
> TinyVector<double,3> d1,d3;
>
> d2 = 2.0; d1 = 3.0;
>
> // compiler (egcs) blows away: no operator * ??
> d3 = d2 * d1;
>
> Any idea how to work around this quickly.
Yes, try
d3 = product(d2,d1);
This works for matrix-matrix and matrix-vector products.
Cheers,
Todd
> I need this while building tensor field classes upon blitz++
> I plan to create a class tensor containing a tinyVector/Matrix
> and let class tensorField contain an Array<tensor,1>
> (unstructured Mesh).
>
> That is the reason why I cannot rely on Array<double,2> since
> then I have to provide a size (call of constructor of contained class):
>
> class Tensor {
> // error - compiler complains
> Array<double,2> a(3,3):
> }
>
> Thanks,
>
> Markus
>
> --------------------- blitz-support list --------------------------------
> * To subscribe/unsubscribe: use the handy web form at
> http://oonumerics.org/blitz/lists.html
>
>
--------------------- blitz-support list --------------------------------
* To subscribe/unsubscribe: use the handy web form at
http://oonumerics.org/blitz/lists.html
This archive was generated by hypermail 2b29 : Wed Feb 20 2002 - 05:10:06 EST