mirror of
https://github.com/nasa/trick.git
synced 2025-02-21 17:36:42 +00:00
Fix MxSCALAR macro to allow scalar parameter to be an expression. Ref #385
This commit is contained in:
parent
ca4dce3582
commit
86add82e35
@ -184,15 +184,15 @@ p_i = m_{i,j} \cdot S: i\in 0..2
|
|||||||
\f]
|
\f]
|
||||||
*/
|
*/
|
||||||
#define MxSCALAR( prod , mat , scalar ) { \
|
#define MxSCALAR( prod , mat , scalar ) { \
|
||||||
prod[0][0]=mat[0][0] * scalar ; \
|
prod[0][0]=mat[0][0] * (scalar); \
|
||||||
prod[0][1]=mat[0][1] * scalar ; \
|
prod[0][1]=mat[0][1] * (scalar); \
|
||||||
prod[0][2]=mat[0][2] * scalar ; \
|
prod[0][2]=mat[0][2] * (scalar); \
|
||||||
prod[1][0]=mat[1][0] * scalar ; \
|
prod[1][0]=mat[1][0] * (scalar); \
|
||||||
prod[1][1]=mat[1][1] * scalar ; \
|
prod[1][1]=mat[1][1] * (scalar); \
|
||||||
prod[1][2]=mat[1][2] * scalar ; \
|
prod[1][2]=mat[1][2] * (scalar); \
|
||||||
prod[2][0]=mat[2][0] * scalar ; \
|
prod[2][0]=mat[2][0] * (scalar); \
|
||||||
prod[2][1]=mat[2][1] * scalar ; \
|
prod[2][1]=mat[2][1] * (scalar); \
|
||||||
prod[2][2]=mat[2][2] * scalar ; \
|
prod[2][2]=mat[2][2] * (scalar); \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user