Eigen 3.4.90
doc
snippets
MatrixBase_template_int_segment.cpp
Go to the documentation of this file.
1
RowVector4i
v
= RowVector4i::Random();
2
cout <<
"Here is the vector v:"
<< endl <<
v
<< endl;
3
cout <<
"Here is v.segment<2>(1):"
<< endl <<
v
.segment<2>(1) << endl;
4
v
.segment<2>(2).
setZero
();
5
cout <<
"Now the vector v is:"
<< endl <<
v
<< endl;
v
RowVector4i v
Definition:
MatrixBase_template_int_segment.cpp:1
setZero
v setZero(3)
Eigen::RowVector4i
Matrix< int, 1, 4 > RowVector4i
1×4 vector of type int.
Definition:
Matrix.h:500