diff --git a/chapters/rigidBody.tex b/chapters/rigidBody.tex index 4b018dc..08ffcec 100644 --- a/chapters/rigidBody.tex +++ b/chapters/rigidBody.tex @@ -295,7 +295,7 @@ \section{Practice: Use \textit{Eigen}} // some matrix operations // The basic operations are not demonstrated, just use +-*/ operators. - Matrix_33 = Matrix3d::Random(); // Random Number Matrix + matrix_33 = Matrix3d::Random(); // Random Number Matrix cout << "random matrix: \n" << matrix_33 << endl; cout << "transpose: \n" << matrix_33.transpose() << endl; cout << "sum: " << matrix_33.sum() << endl; @@ -323,7 +323,7 @@ \section{Practice: Use \textit{Eigen}} matrix_NN * matrix_NN.transpose(); // Guarantee semi-positive definite Matrix v_Nd = MatrixXd::Random(MATRIX_SIZE, 1); - Clock_t time_stt = clock(); // timing + clock_t time_stt = clock(); // timing // Direct inversion Matrix x = matrix_NN.inverse() * v_Nd; cout << "time of normal inverse is "