Sign in
eigen
/
mirror
/
2f6815df8e2a9e87cb81876d3eb3484fe5f5af15
/
.
/
doc
/
snippets
/
PartialRedux_norm2.cpp
blob: 9e1692ae36fbdbd38d3a1cd92aee0ff1d71c2bac [
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
;