Boost logo

Ublas :

From: Sourabh (sourabh_at_[hidden])
Date: 2007-02-28 05:19:38


#include <boost/numeric/ublas/matrix_sparse.hpp>
#include <boost/numeric/ublas/io.hpp>

using namespace boost::numeric::ublas;

int main () {
    typedef mapped_matrix<double> Matrix;
    typedef mapped_matrix<Matrix> MyMatrix;
    MyMatrix m;
    MyMatrix n;
    MyMatrix l;
    
    MyMatrix k = m + n;
}

This program, on compilation gives the following error:

boost/numeric/ublas/detail/matrix_assign.hpp:922: no
   match for `main()::Matrix& != main()::Matrix' operator