Sign in
third-party-mirror
/
eigen
/
941ca8d83f776b9a07153d3abef2877907aa0555
/
.
/
doc
/
snippets
/
DirectionWise_replicate.cpp
blob: c448307e1fd8906bba54d0541504112bc1228913 [
file
] [
log
] [
blame
]
MatrixXi
m
=
MatrixXi
::
Random
(
2
,
3
);
cout
<<
"Here is the matrix m:"
<<
endl
<<
m
<<
endl
;
cout
<<
"m.colwise().replicate<3>() = ..."
<<
endl
;
cout
<<
m
.
colwise
().
replicate
<
3
>()
<<
endl
;