Boost logo

Boost Users :

Subject: [Boost-users] BOOST-UBLAS: how to implement A.B.A^t operation.
From: Arman Khalatyan (arm2arm_at_[hidden])
Date: 2009-11-21 05:42:43


Hello,
I would like to calculate for B=NxN matrix and A=N vector following
operation:
RES= A (dot)* *B (dot) A^T

using namespace boost::numeric::ublas;
matrix<double> B (2, 2);
matrix<double> A(1, 2);
// this works when I do step by step
matrix<double> res=prod(A,B);
res=prod(res,trans(B));

// but this does not compile
res=prod(prod(A,B),trans(A)) // it gives error error C2027: use of
undefined type 'boost::STATIC_ASSERTION_FAILURE<x>'
So what is the difference with previous?

Thanks Arman.



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