Sign in
eigen
/
mirror
/
6f9c2abf31a8f7201edea230f09389c4569291e2
/
.
/
doc
/
snippets
/
PartialRedux_norm.cpp
blob: 9352ba18b8e093ad3f8df20317cd9e81c82a84cd [
file
]
// SPDX-FileCopyrightText: The Eigen Authors
// SPDX-License-Identifier: MPL-2.0
Matrix3d
m
=
Matrix3d
::
Random
();
cout
<<
"Here is the matrix m:"
<<
endl
<<
m
<<
endl
;
cout
<<
"Here is the norm of each column:"
<<
endl
<<
m
.
colwise
().
norm
()
<<
endl
;