|
Boost Users : |
From: speedsnaii
Date: 2003-02-24 15:41:15
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net