Pat Hawley wrote:
My next step would be to add units to the numeric values--assuming this can be done in the context of ublas.
Is it possible to use Boost.Units and Boost.Ublas together? For example create a ublas vector of positions?
It is possible to create such a vector, but there isn't a whole lot you can do with it. You certainly won't be able to do anything that requires quantities to be multiplied and divided inside uBlas.
*vector
is vector ... In
The problem being that ublas currently does not correctly resolve the
value type for arithmetic operations. For "normal" numeric types, even
if not strictly correct, this is usually not a problem : the type of
vector<double>*vector<double> is vector<double>. Since all the unit
magic in Boost.Units is encoded in the types, this isn't true with
quantities : the type of vector