|
Ublas : |
From: Gunter Winkler (guwi17_at_[hidden])
Date: 2007-05-01 07:16:36
Am Montag, 30. April 2007 21:45 schrieb Gross, Steve:
> I'm trying to figure out if it's possible to get a proxy vector to a
> matrix row or column and not have to know about the source of the
> data. That is, let's say you've got some function permuteVector that
> takes a vector_range reference as input, and alters the data somehow:
>
> void permuteVector(vector_range & v) { /* permute V somehow... */ }
why not:
template < class M >
void permuteVector(vector_range<M> & v)
{
}
or even
template < class M >
void permuteVector(vector_expression<M>& e)
{
}
mfg
Gunter