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