Sign in
eigen
/
mirror
/
7e0972963edfa2cd4bcb3be56aa1f6e7cc9293cd
/
.
/
doc
/
snippets
/
MatrixBase_cwiseProduct.cpp
blob: adfb54a856b570fef6599399e1ccd79970bd5d3f [
file
]
// SPDX-FileCopyrightText: The Eigen Authors
// SPDX-License-Identifier: MPL-2.0
Matrix3i
a
=
Matrix3i
::
Random
(),
b
=
Matrix3i
::
Random
();
Matrix3i
c
=
a
.
cwiseProduct
(
b
);
cout
<<
"a:\n"
<<
a
<<
"\nb:\n"
<<
b
<<
"\nc:\n"
<<
c
<<
endl
;