Sign in
◑
Theme
eigen
/
mirror
/
ae4d9434e23e62d9403e570c20aeb3b8b44a2dd3
/
.
/
doc
/
snippets
/
DirectionWise_replicate.cpp
blob: d92d4a3507ac5fce74c5dccfdcf7ba446725f4cd [
file
]
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
;