From aab6ce3c9e1743d20c620f4cdf5e8105726bb684 Mon Sep 17 00:00:00 2001 From: "John M. Penn" Date: Fri, 3 Mar 2017 18:33:53 -0600 Subject: [PATCH] Ooops! Typo in macro. Ref #385 --- include/trick/matrix_macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/trick/matrix_macros.h b/include/trick/matrix_macros.h index b12b8cfd..0da73ab3 100644 --- a/include/trick/matrix_macros.h +++ b/include/trick/matrix_macros.h @@ -308,7 +308,7 @@ Assigns the product of A, B, and V to P. p_i = \sum_{j=0}^{2} A_{i,j} \left( \sum_{k=0}^{2} B_{j,k} \cdot v_i \right) : i\in 0..2 \f] */ -#define MxMxV(prod, mat1, mat2, v ) { \ +#define MxMxV(prod, mat1, mat2, vect ) { \ prod[0] = mat1[0][0] *(mat2[0][0] * vect[0] + mat2[0][1] * vect[1] + mat2[0][2] * vect[2])+\ mat1[0][1] *(mat2[1][0] * vect[0] + mat2[1][1] * vect[1] + mat2[1][2] * vect[2])+\ mat1[0][2] *(mat2[2][0] * vect[0] + mat2[2][1] * vect[1] + mat2[2][2] * vect[2]);\