From: Gunter Winkler (guwi17_at_[hidden])
Date: 2007-11-27 16:17:58
Am Dienstag, 27. November 2007 08:57 schrieb Ashima Atul:
> typedef boost::shared_ptr<myType> myTypePtr;
> using namespace boost::numeric::ublas;
> typedef matrix< myTypePtr > myTypePtrMatrix;
I am very sorry, but ublas does not support pointers as data type unless
you really want to do pointer arithmetics. The value_type of all ublas'
classes has to behave like a scalar. There is an additional
T x = some_value;
T(0) + x == x;
T(1) * x == x;
This also includes that the type T has to be constructible from an int.
(We have been thinking about alternatives but no one had time to
implement it so far.)