Gitiles
Code Review
Sign In
gerrit.openfyde.cn
/
chromium.googlesource.com
/
external
/
gitlab.com
/
libeigen
/
eigen
/
9466e5f94edbff1219cd48639fd0ef80e11b85a9
/
.
/
doc
/
snippets
/
PartialRedux_sum.cpp
blob: dfd0eb9a969598a77fcf56b0c600e10b37d3208e [
file
] [
log
] [
blame
]
Benoit Jacob
9466e5f
2008-08-19 04:30:28 +0000
[
diff
] [
blame^
]
1
Matrix3d
m
=
Matrix3d
::
Random
();
2
cout
<<
"Here is the matrix m:"
<<
endl
<<
m
<<
endl
;
3
cout
<<
"Here is the sum of each row:"
<<
endl
<<
m
.
rowwise
().
sum
()
<<
endl
;