Boost logo

Ublas :

From: Gunter Winkler (guwi17_at_[hidden])
Date: 2005-07-16 11:16:16

Am Samstag, 16. Juli 2005 17:59 schrieb Gunter Winkler:
> Hallo,
> after the last CVS update my program does not compile anymore because
> there is no operator[] in matrix_container.

#include <iostream>

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

int main(int argc, char *argv[])
  boost::numeric::ublas::matrix<double> A(5,5);
  std::cout << A[1] << std::endl;

  return EXIT_SUCCESS;

g++ -I $HOME/include/ -o ublastest_row ublastest_row.cpp

ublastest_row.cpp: In function `int main(int, char**)':
ublastest_row.cpp:11: error: no match for 'operator[]' in 'A[1]'

This may be because matrix is not convertible to
matrix_expression<matrix> anymore?