mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
* complete the change norm2->squaredNorm in PartialRedux
* somehow the NICE_RANDOM stuff wasn't being used anymore and tests were sometimes failing again. Fixed by #including Eigen/Array instead of cherry-picking just Random.h. * little fixes in the unaligned assert page
This commit is contained in:
3
doc/snippets/PartialRedux_squaredNorm.cpp
Normal file
3
doc/snippets/PartialRedux_squaredNorm.cpp
Normal file
@@ -0,0 +1,3 @@
|
||||
Matrix3d m = Matrix3d::Random();
|
||||
cout << "Here is the matrix m:" << endl << m << endl;
|
||||
cout << "Here is the square norm of each row:" << endl << m.rowwise().squaredNorm() << endl;
|
||||
Reference in New Issue
Block a user