C++ boost ublas + units dimension constraints
- by aaa
hello.
I am seeking advice on design/general idea on how to force matrix dimension constraints on ublas matrix/vector possibly using boost units.
For example, let matrix A have dimensions of time x force (for example)
// does not have dimensions, time x force and force x time are not distinguished.
matrix<double> A;
//something like?
dimension<time, force, matrix<double> > A;
dimension<force, time, matrix<double> > B = trans(A);
have you done something like this or do you have some good idea about how to organize such constraints?
Thank you