05-31-2007 12:02 PM
I'm trying to use the multiply method for CNiMatrix with the measurement studio evaluation edition v. 8.0.11.334. I found out my company had a site license so I will be installing that soon.
I get the following compile error with my code below. This seems like a bug. I'm simply trying to do matrix multiplication of t*B where t= [1.2, 1.2, 1.2] and B = [1, -1, 1]. I suspect the problem is with matrix P since B and t are passed as const &.
Please let me know how to use the multiply method properly.
Thank you.
d:\My Documents\Visual Studio Projects\3DLinesAndMisc\3DStuff.cpp(73) : error C2248: 'NI::CNiMatrixT<DataType>::Multiply' : cannot access protected member declared in class 'NI::CNiMatrixT<DataType>'
CNiReal32Matrix P(3,1);
CNiReal32Matrix A(3,1);
CNiReal32Matrix B(3,1);
CNiReal32Matrix t(3,1);
B(0,0) = m_a.GetValue();
B(1,0) = m_b.GetValue();
B(2,0) = m_c.GetValue();
A(0,0) = m_x0.GetValue();
A(1,0) = m_y0.GetValue();
A(2,0) = m_z0.GetValue();
t(0,0) = m_t.GetValue();
t(1,0) = m_t.GetValue();
t(2,0) = m_t.GetValue();
P.Multiply(t,B,P);
06-01-2007 04:09 PM