On Tue, Aug 3, 2010 at 2:14 AM, Andrey Asadchev
<asadchev@gmail.com> wrote:
hello Jörn Ungermann
I use array_adapter (and it's variations) to basically accomplish that:
matrix<double, column_major, array_adapter<double> > matrix(m, n, array_adapter<double>(...));
if you are looking for immediate solution.
I must add, adapter has deep copy semantics, so I use this trick :
matrix(m, n, array_adapter<double>(m*n, NULL));
array_adapter<double> data(m*n, actual_data);
matrix.swap(data);