I am looking for design / general idea advice on how to enforce matrix dimension constraints on an ublas matrix / vector, possibly using boost blocks.
For example, let the matrix A have the dimensions of the time force x (for example)
matrix<double> A;
dimension<time, force, matrix<double> > A;
dimension<force, time, matrix<double> > B = trans(A);
matrix<double, dimension<time, force> > A;
Have you done something like this, or do you have a good idea on how to organize such restrictions? I'm more looking for a syntax / semantics suggestion rather than an implementation.
I went through the ublas archives, there is a discussion, but nothing concrete.
thank
source
share