Sign in
eigen
/
mirror
/
90dfbc054ed49f7999e506ccd0d8436a61261395
/
.
/
doc
/
snippets
/
PartialRedux_prod.cpp
blob: 8e8f4cf9da1cf1a25f927e8139db94b38754bc6d [
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 product of each row:"
<<
endl
<<
m
.
rowwise
().
prod
()
<<
endl
;