Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

measurement studio multiply method for CNiMatrixT

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);

 

0 Kudos
Message 1 of 2
(6,115 Views)
Hey MAlan,

In order to multiply these two matrices, use the "*" operator i.e. P=t*B;

Have a great day,

Ecleamus R.
0 Kudos
Message 2 of 2
(6,103 Views)