Sign in
◑
Theme
eigen
/
mirror
/
1d07ef27ea041e20549334a17c58ca2b18a8edaf
/
.
/
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
;