
5 Oct
2004
5 Oct
'04
12:24 p.m.
Hi Boost people I'm starting with uBLAS matrix class under Borland C++ builder. I copied a sample from boost document and complied it. There are always mistakes in "traits.hpp". I tried again in VC and no problem occured. I just wonder what's wrong with BC. I have copied the boost dir into BC's Include dir and have added it in Project->Options->Directories. Here's my copied code: #include <boost/numeric/ublas/matrix.hpp> #include <boost/numeric/ublas/io.hpp> int main () { using namespace boost::numeric::ublas; matrix<double> m (3, 3); for (unsigned i = 0; i < m.size1 (); ++ i) for (unsigned j = 0; j < m.size2 (); ++ j) m (i, j) = 3 * i + j; std::cout << m << std::endl; } Thanx