gtsam
3rdparty
Eigen
doc
examples
Tutorial_BlockOperations_vector.cpp
Go to the documentation of this file.
1
#include <Eigen/Dense>
2
#include <iostream>
3
4
using namespace
std
;
5
6
int
main
()
7
{
8
Eigen::ArrayXf
v
(6);
9
v
<< 1, 2, 3, 4, 5, 6;
10
cout <<
"v.head(3) ="
<< endl <<
v
.head(3) << endl << endl;
11
cout <<
"v.tail<3>() = "
<< endl <<
v
.tail<3>() << endl << endl;
12
v
.segment(1,4) *= 2;
13
cout <<
"after 'v.segment(1,4) *= 2', v ="
<< endl <<
v
<< endl;
14
}
main
int main()
Definition:
Tutorial_BlockOperations_vector.cpp:6
std
Definition:
BFloat16.h:88
v
Array< int, Dynamic, 1 > v
Definition:
Array_initializer_list_vector_cxx11.cpp:1
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:36