Boost logo

Ublas :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2007-05-01 13:23:50


Explicitly template instantiation can help you. One trick if the
template type is some composite template is to wait for the link errors
and do typedefs for the missing template types.

Good luck :)

> -----Original Message-----
> From: ublas-bounces_at_[hidden]
> [mailto:ublas-bounces_at_[hidden]] On Behalf Of Gross, Steve
> Sent: Tuesday, May 01, 2007 9:02 AM
> To: ublas_at_[hidden]
> Subject: RE: ublas Digest, Vol 30, Issue 1
>
> 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?
>
> --Steve
>
> -----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)
> {
> }
>
>