Boost logo

Boost Users :

From: Daniel Krügler (dsp_at_[hidden])
Date: 2008-05-06 10:52:32


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.htm

HTH,

Daniel Krügler


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net