Boost logo

Boost :

From: Joerg Walter (jhr.walter_at_[hidden])
Date: 2002-04-16 01:29:52


Hi all,

I've just committed a bugfix to boost CVS, which makes sure, that the
following test case works as intended:

{
        numerics::banded_matrix<double> bm (3, 3, 1, 1);
        numerics::symmetric_adaptor<numerics::banded_matrix<double>,
numerics::lower> sa (bm);
        sa (0, 0) = sa (1, 1) = sa (2, 2) = 1;
        sa (1, 0) = sa (2, 1) = 2;
        std::cout << sa << std::endl;
}
{
        numerics::banded_matrix<double> bm (3, 3, 1, 0);
        numerics::symmetric_adaptor<numerics::banded_matrix<double>,
numerics::lower> sa (bm);
        sa (0, 0) = sa (1, 1) = sa (2, 2) = 1;
        sa (1, 0) = sa (2, 1) = 2;
        std::cout << sa << std::endl;
}

Regards

Joerg


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk