Boost logo

Boost Users :

From: ะ์มม (b0nb0n_at_[hidden])
Date: 2004-10-05 07:24:28


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
กกกกกกกกกกกกกก


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net