Skip to content

Commit

Permalink
Merge pull request #48 from yosoufe/patch-1
Browse files Browse the repository at this point in the history
typos in rigidBody.tex code snippets.
  • Loading branch information
gaoxiang12 authored Jul 14, 2021
2 parents 0bc8cc2 + dfef4a0 commit 4c8180c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapters/rigidBody.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -323,7 +323,7 @@ \section{Practice: Use \textit{Eigen}}
matrix_NN * matrix_NN.transpose(); // Guarantee semi-positive definite
Matrix<double, MATRIX_SIZE, 1> v_Nd = MatrixXd::Random(MATRIX_SIZE, 1);

Clock_t time_stt = clock(); // timing
clock_t time_stt = clock(); // timing
// Direct inversion
Matrix<double, MATRIX_SIZE, 1> x = matrix_NN.inverse() * v_Nd;
cout << "time of normal inverse is "
Expand Down

0 comments on commit 4c8180c

Please sign in to comment.