Boost logo

Ublas :

From: Gross, Steve (SGross_at_[hidden])
Date: 2007-05-01 12:01:52

That's not bad, but it does require that my code be in header files, rather than .cpp's. Is there a non-templated way to make this work?


-----Original Message-----
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)