Boost logo

Ublas :

Subject: [ublas] High dimmension sparse vectors
From: Paweł Mirski (cthd_at_[hidden])
Date: 2010-11-24 11:37:18


Hello,
I have question about ublas sparse vectors - does ublas sparse vectors supports very high dimmension? I have problem with following code:

        ublas::mapped_vector<float> v1(0xFFFFFFFF);
        ublas::mapped_vector<float> v2(0xFFFFFFFF);

        v1(3) = 1;
        v2 += v1;

Inserting, deleting, iterating through such vector works but plus and minus operators tries to allocate 4GB memory!
Is it bug or simply ublass are not designed to work witch such high dimmensions?

Greetings,
Pawel Mirski