Boost logo

Ublas :

From: Mei, Longyu (LMei_at_[hidden])
Date: 2007-09-17 10:09:29

I am trying to use the LU Matrix Inversion
U+Matrix+Inversion> to do matrix inversion. I have latest boost
(boost_1_34_1). I am use this InvertMatrix method:
When I test it with the following piece of code, I cannot get the right
answer, and the result is "inverseResult: Failed". Anybody can help me
Do I need to update "lu.hpp" header includes from boost-CVS? if yest,
anybody can email me one or tell me how to get from there?
    for(int i = 0; i < inverseTest.size1(); ++i)
        for(int j = 0; j < inverseTest.size2(); ++j)
            inverseTest(i, j) = j + 1;
    cout << "inverseTest: " << inverseTest << endl;
    bool status = InvertMatrix(inverseTest, inverseResult);
        cout << "inverseResult: " << inverseResult << endl;
        cout << "inverseResult: Failed" << endl;

The information transmitted in this message is confidential and may be privileged. Any review, retransmission, dissemination, or other use of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please notify Analogic Corporation immediately - by replying to this message or by sending an email to DeliveryErrors_at_[hidden] - and destroy all copies of this information, including any attachments, without reading or disclosing them.

Thank you.