From dfef4a0c906664f01108b22fc76d5c9cb32cde83 Mon Sep 17 00:00:00 2001 From: Yousof Date: Sun, 11 Jul 2021 01:49:45 -0700 Subject: [PATCH] Update rigidBody.tex --- chapters/rigidBody.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 "