Boost logo

Ublas :

From: Sorkin Dima (dsorkin_at_[hidden])
Date: 2007-03-24 11:30:11


Hi.
  I have a problem with some uBLAS (boost 1.33)
based code, when I work with MIPSpro 7.4.3m or
and GCC on SGI platform.

(on other platforms
G++ -pedantic -Wall accepts that code without warnings,
and on SGI platform my other pieces of code are accepted, as
long as I don't get to that example)

The code is below, error messages are attached.

May someone take a glance ?

Thank you,
  Dima.

#include<boost/numeric/ublas/matrix.hpp>
#include<boost/numeric/ublas/matrix_proxy.hpp>
#include<boost/numeric/ublas/operation.hpp>

namespace ublas = boost::numeric::ublas;

int main(){

   ublas::matrix<double> M(2,2),Q(2,2);
   ublas::row(M,1); // ok

   ublas::matrix_range< ublas::matrix<double> >
     R(M,ublas::range(0,2),ublas::range(0,2));

   ublas::row(R,1); // ok

   ublas::axpy_prod(M,R,Q); // fails

   return 0;
}