
i'll try just one more time on 15.08.2009 at 14:00 joel wrote :
The underlying principles of NT2 is that matrix is the common representation for all domain-specific entities. So we have a polynom, image and even transform object that reuse components of matrix to perform their computation but with a stricter semantic. Matrix also play the role of Lin. Alg. matrix and vector. ok suppose i'm a not too experienced programmer and i want to express that my function foo() takes a column vector as a parameter considering 'matrix' and 'vector' be distinct types i would write:
void foo(const lib::vector<some_type> &v); it is type safe and the intent is very clear as foo() author i know that i get v.size() by 1 matrix (actually a vector) and can access elements with subscript operator[] it is common and it is among the first things every programmer learns how would i deal with generic matrix? -- Pavel