|
gtsam 4.1.1
gtsam
|
Fixed size vectors - compatible with boost vectors, but with compile-type size checking.
Inheritance diagram for gtsam::FixedVector< N >:Public Member Functions | |
| FixedVector () | |
| default constructor | |
| FixedVector (const FixedVector &v) | |
| copy constructors | |
| FixedVector (const Vector &v) | |
| Convert from a variable-size vector to a fixed size vector. | |
| FixedVector (const double *values) | |
| Initialize with a C-style array. | |
| void | print (const std::string &name="") const |
| template<size_t M> | |
| bool | equals (const FixedVector< M > &other, double tol=1e-9) const |
| bool | equals (const FixedVector &other, double tol=1e-9) const |
Static Public Member Functions | |
| static FixedVector | repeat (double value) |
| Create vector initialized to a constant value. More... | |
| static FixedVector | delta (size_t i, double value) |
| Create basis vector of with a constant in spot i. More... | |
| static FixedVector | basis (size_t i) |
| Create basis vector, with one in spot i. More... | |
| static FixedVector | zero () |
| Create zero vector. | |
| static FixedVector | ones () |
| Create vector initialized to ones. | |
| static size_t | dim () |
Public Types | |
| typedef Eigen::Matrix< double, N, 1 > | Base |
|
inlinestatic |
Create basis vector, with one in spot i.
| i | index of the one |
|
inlinestatic |
Create basis vector of with a constant in spot i.
| i | index of the one |
| value | is the value to insert into the vector |
|
inlinestatic |
Create vector initialized to a constant value.
| value | constant value |