Boost logo

Ublas :

Subject: Re: [ublas] vector< vector< T > > to matrix < T > assignment
From: Matwey V. Kornilov (matwey.kornilov_at_[hidden])
Date: 2010-09-11 10:30:04


It is not too hard to implement.

Matwey V. Kornilov wrote:
>
> I would prefer special adapter:
>
> vector< vector<double> > v;
> matrix< double > m;
>
> m = vector_of_vector_as_matrix( v ); //
> matrix_as_vector_of_vector( m ) = v; //
>
> but unfortunately it doesn't exist.