How to load a Boost ublas matrix of size more than 50000 x 500?

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 ? Thanks, Ajay G.

You can fix it by probably increasing your stack segment. Check this option with your compiler or OS. With Kind Regards, Ovanes On Tue, May 6, 2008 at 4:08 PM, ajay gopalakrishnan <gajaykrishnan@gmail.com> 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 ?
Thanks, Ajay G. <http://lists.boost.org/mailman/listinfo.cgi/boost-users>

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

On May 6, 2008, at 4:08 PM, 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 ?
This should only need about 100 MByte of memory. Unless you have very little main memory I don't see why this should cause problems. Matthias
participants (4)
-
ajay gopalakrishnan
-
Daniel Krügler
-
Matthias Troyer
-
Ovanes Markarian