Sign in
eigen
/
mirror
/
7e0972963edfa2cd4bcb3be56aa1f6e7cc9293cd
/
.
/
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
;