|
gtsam 4.1.1
gtsam
|
A matrix abstraction of MxN values at the Basis points.
This class serves as a wrapper over an Eigen matrix.
| M | The dimension of the type you wish to evaluate. |
| N | the number of Basis points (e.g. Chebyshev points of the second kind). |
Vector Space requirements, following LieMatrix | |
| void | print (const std::string &s="") const |
| Print the ParameterMatrix. More... | |
| bool | equals (const ParameterMatrix< M > &other, double tol=1e-8) const |
| Check for equality up to absolute tolerance. More... | |
| size_t | dim () const |
| Returns dimensionality of the tangent space. | |
| Vector | vector () const |
| Convert to vector form, is done row-wise. | |
| static ParameterMatrix | identity () |
| Identity function to satisfy VectorSpace traits. More... | |
Public Member Functions | |
| ParameterMatrix (const size_t N) | |
| Create ParameterMatrix using the number of basis points. More... | |
| ParameterMatrix (const MatrixType &matrix) | |
| Create ParameterMatrix from an MxN Eigen Matrix. More... | |
| size_t | rows () const |
| Get the number of rows. | |
| size_t | cols () const |
| Get the number of columns. | |
| MatrixType | matrix () const |
| Get the underlying matrix. | |
| Eigen::Matrix< double, -1, M > | transpose () const |
| Return the tranpose of the underlying matrix. | |
| Eigen::Matrix< double, 1, -1 > | row (size_t index) const |
Get the matrix row specified by index. More... | |
| auto | row (size_t index) -> Eigen::Block< MatrixType, 1, -1, false > |
Set the matrix row specified by index. More... | |
| Eigen::Matrix< double, M, 1 > | col (size_t index) const |
Get the matrix column specified by index. More... | |
| auto | col (size_t index) -> Eigen::Block< MatrixType, M, 1, true > |
Set the matrix column specified by index. More... | |
| void | setZero () |
| Set all matrix coefficients to zero. | |
| ParameterMatrix< M > | operator+ (const ParameterMatrix< M > &other) const |
| Add a ParameterMatrix to another. More... | |
| ParameterMatrix< M > | operator+ (const Eigen::Matrix< double, -1, 1 > &other) const |
| Add a MxN-sized vector to the ParameterMatrix. More... | |
| ParameterMatrix< M > | operator- (const ParameterMatrix< M > &other) const |
| Subtract a ParameterMatrix from another. More... | |
| ParameterMatrix< M > | operator- (const Eigen::Matrix< double, -1, 1 > &other) const |
| Subtract a MxN-sized vector from the ParameterMatrix. More... | |
| MatrixType | operator* (const Eigen::Matrix< double, -1, -1 > &other) const |
| Multiply ParameterMatrix with an Eigen matrix. More... | |
Public Types | |
| enum | { dimension = Eigen::Dynamic } |
|
inline |
Create ParameterMatrix using the number of basis points.
| N | The number of basis points (the columns). |
|
inline |
Create ParameterMatrix from an MxN Eigen Matrix.
| matrix | An Eigen matrix used to initialze the ParameterMatrix. |
|
inline |
Set the matrix column specified by index.
| index | The column index to set. |
|
inline |
Get the matrix column specified by index.
| index | The column index to retrieve. |
|
inline |
Check for equality up to absolute tolerance.
| other | The ParameterMatrix to check equality with. |
| tol | The absolute tolerance threshold. |
|
inlinestatic |
Identity function to satisfy VectorSpace traits.
NOTE: The size at compile time is unknown so this identity is zero length and thus not valid.
|
inline |
Multiply ParameterMatrix with an Eigen matrix.
| other | Eigen matrix which should be multiplication compatible with the ParameterMatrix. |
|
inline |
Add a MxN-sized vector to the ParameterMatrix.
| other | Vector which is reshaped and added. |
|
inline |
Add a ParameterMatrix to another.
| other | ParameterMatrix to add. |
|
inline |
Subtract a MxN-sized vector from the ParameterMatrix.
| other | Vector which is reshaped and subracted. |
|
inline |
Subtract a ParameterMatrix from another.
| other | ParameterMatrix to subtract. |
|
inline |
Print the ParameterMatrix.
| s | The prepend string to add more contextual info. |
|
inline |
Set the matrix row specified by index.
| index | The row index to set. |
|
inline |
Get the matrix row specified by index.
| index | The row index to retrieve. |