Sign in
eigen
/
mirror
/
12e9de4abbe9a4cf9b2812e700ce41bdd0351cb3
/
.
/
doc
/
snippets
/
PartialRedux_norm2.cpp
blob: a077309a3a20ddbaa3cba9259e88ca715a7e53c7 [
file
]
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
().
norm2
()
<<
endl
;