
6 May
2008
6 May
'08
2:52 p.m.
ajay gopalakrishnan wrote:
Hi all,
I am unable to initialize a matrix of size 50000 x 500 using ublas::matrix<float>. I think it is giving error because no contiguous memory is available to create. But is there a way to create a non-contiguous matrix ?
Use one of the sparse matrix classes: http://www.boost.org/doc/libs/1_35_0/libs/numeric/ublas/doc/matrix_sparse.ht... HTH, Daniel Krügler