24 Feb
2003
24 Feb
'03
8:41 p.m.
I am trying to find a good choice for argument types to a function. (Please be patient, I am a poor user of C++ who has not yet understood all this expression template magic.) I'd like to have a function: void foo( whattype arg) { } matrix<double> m(3,3); vector<double> v(6); and call it like: foo(m.column(0)); foo(m.row(0)); foo(v); Is this feasible? Should I use iterators for whattype? (how do I access size information then?) Am I trying to misuse the ublas when asking such a question? (Which container should I use in this case?) In the hope anyone can shade some light on it. Thank you, Roland