26 Jun
2008
26 Jun
'08
4:02 a.m.
AMDG Matthias Schabel wrote:
*vector<quantity<length> > is vector<quantity<area> >... 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<quantity<length> principle, this could be fixed, but would require a significant amount of effort on the part of the ublas maintainers.
I've started working on it, and it's actually pretty easy. I already have matrix multiplication working. In Christ, Steven Watanabe