Sign in
eigen
/
mirror
/
7e0972963edfa2cd4bcb3be56aa1f6e7cc9293cd
/
.
/
doc
/
snippets
/
MatrixBase_cwiseInverse.cpp
blob: b076fd455db70088cd731da395b9cc40a6b65e3b [
file
]
// SPDX-FileCopyrightText: The Eigen Authors
// SPDX-License-Identifier: MPL-2.0
MatrixXd
m
(
2
,
3
);
m
<<
2
,
0.5
,
1
,
3
,
0.25
,
1
;
cout
<<
m
.
cwiseInverse
()
<<
endl
;