Boost logo

Ublas :

From: Sourabh (sourabh_at_[hidden])
Date: 2007-03-01 11:32:46


Hi,
Is there any size limit on the matrix I can create in ublas.
Please see the following program :
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/triangular.hpp>
#include <boost/numeric/ublas/io.hpp>
#include <boost/numeric/ublas/matrix_sparse.hpp>
#include <boost/numeric/ublas/matrix_proxy.hpp>
using namespace boost::numeric::ublas;

int main (int argc, char* argv[])
{
    int n = atoi (argv[1]);
    triangular_matrix<double, lower> m (n,n);
}

when I give argv[1] >= 100000, the program aborts saying:

Assertion failed in file
<boost/numeric/ublas/functional.hpp>
at line 1456:
size == 0 || size / 2 < (std::numeric_limits<size_type>::max) () / size
Aborted (core dumped)

 --
-- Sourabh