|
| | VariableMatrix ()=default |
| | Constructs an empty VariableMatrix.
|
| | VariableMatrix (int rows) |
| | Constructs a zero-initialized VariableMatrix column vector with the given rows.
|
| | VariableMatrix (int rows, int cols) |
| | Constructs a zero-initialized VariableMatrix with the given dimensions.
|
| | VariableMatrix (detail::empty_t, int rows, int cols) |
| | Constructs an empty VariableMatrix with the given dimensions.
|
| | VariableMatrix (std::initializer_list< std::initializer_list< Variable< Scalar > > > list) |
| | Constructs a scalar VariableMatrix from a nested list of Variables.
|
| | VariableMatrix (const std::vector< std::vector< Scalar > > &list) |
| | Constructs a scalar VariableMatrix from a nested list of scalars.
|
| | VariableMatrix (const std::vector< std::vector< Variable< Scalar > > > &list) |
| | Constructs a scalar VariableMatrix from a nested list of Variables.
|
| template<typename Derived> |
| | VariableMatrix (const Eigen::MatrixBase< Derived > &values) |
| | Constructs a VariableMatrix from an Eigen matrix.
|
| template<typename Derived> |
| | VariableMatrix (const Eigen::DiagonalBase< Derived > &values) |
| | Constructs a VariableMatrix from an Eigen diagonal matrix.
|
| | VariableMatrix (const Variable< Scalar > &variable) |
| | Constructs a scalar VariableMatrix from a Variable.
|
| | VariableMatrix (Variable< Scalar > &&variable) |
| | Constructs a scalar VariableMatrix from a Variable.
|
| | VariableMatrix (const VariableBlock< VariableMatrix > &values) |
| | Constructs a VariableMatrix from a VariableBlock.
|
| | VariableMatrix (const VariableBlock< const VariableMatrix > &values) |
| | Constructs a VariableMatrix from a VariableBlock.
|
| | VariableMatrix (std::span< const Variable< Scalar > > values) |
| | Constructs a column vector wrapper around a Variable array.
|
| | VariableMatrix (std::span< const Variable< Scalar > > values, int rows, int cols) |
| | Constructs a matrix wrapper around a Variable array.
|
| template<typename Derived> |
| VariableMatrix & | operator= (const Eigen::MatrixBase< Derived > &values) |
| | Assigns an Eigen matrix to a VariableMatrix.
|
| VariableMatrix & | operator= (ScalarLike auto value) |
| | Assigns a scalar to the matrix.
|
template<typename Derived>
requires std::same_as<typename Derived::Scalar, Scalar> |
| void | set_value (const Eigen::MatrixBase< Derived > &values) |
| | Sets the VariableMatrix's internal values.
|
| Variable< Scalar > & | operator() (int row, int col) |
| | Returns the element at the given row and column.
|
| const Variable< Scalar > & | operator() (int row, int col) const |
| | Returns the element at the given row and column.
|
| Variable< Scalar > & | operator[] (int index) |
| | Returns the element at the given index.
|
| const Variable< Scalar > & | operator[] (int index) const |
| | Returns the element at the given index.
|
| VariableBlock< VariableMatrix > | block (int row_offset, int col_offset, int block_rows, int block_cols) |
| | Returns a block of the variable matrix.
|
| const VariableBlock< const VariableMatrix > | block (int row_offset, int col_offset, int block_rows, int block_cols) const |
| | Returns a block of the variable matrix.
|
| VariableBlock< VariableMatrix > | operator() (Slice row_slice, Slice col_slice) |
| | Returns a slice of the variable matrix.
|
| const VariableBlock< const VariableMatrix > | operator() (Slice row_slice, Slice col_slice) const |
| | Returns a slice of the variable matrix.
|
| VariableBlock< VariableMatrix > | operator() (Slice row_slice, int row_slice_length, Slice col_slice, int col_slice_length) |
| | Returns a slice of the variable matrix.
|
| const VariableBlock< const VariableMatrix > | operator() (Slice row_slice, int row_slice_length, Slice col_slice, int col_slice_length) const |
| | Returns a slice of the variable matrix.
|
| VariableBlock< VariableMatrix > | segment (int offset, int length) |
| | Returns a segment of the variable vector.
|
| const VariableBlock< const VariableMatrix > | segment (int offset, int length) const |
| | Returns a segment of the variable vector.
|
| VariableBlock< VariableMatrix > | row (int row) |
| | Returns a row slice of the variable matrix.
|
| const VariableBlock< const VariableMatrix > | row (int row) const |
| | Returns a row slice of the variable matrix.
|
| VariableBlock< VariableMatrix > | col (int col) |
| | Returns a column slice of the variable matrix.
|
| const VariableBlock< const VariableMatrix > | col (int col) const |
| | Returns a column slice of the variable matrix.
|
| VariableMatrix & | operator*= (const MatrixLike auto &rhs) |
| | Compound matrix multiplication-assignment operator.
|
| VariableMatrix & | operator*= (const ScalarLike auto &rhs) |
| | Compound matrix-scalar multiplication-assignment operator.
|
| VariableMatrix & | operator/= (const ScalarLike auto &rhs) |
| | Compound matrix division-assignment operator.
|
| VariableMatrix & | operator+= (const MatrixLike auto &rhs) |
| | Compound addition-assignment operator.
|
| VariableMatrix & | operator+= (const ScalarLike auto &rhs) |
| | Compound addition-assignment operator.
|
| VariableMatrix & | operator-= (const MatrixLike auto &rhs) |
| | Compound subtraction-assignment operator.
|
| VariableMatrix & | operator-= (const ScalarLike auto &rhs) |
| | Compound subtraction-assignment operator.
|
| | operator Variable< Scalar > () const |
| | Implicit conversion operator from 1x1 VariableMatrix to Variable.
|
| VariableMatrix< Scalar > | T () const |
| | Returns the transpose of the variable matrix.
|
| int | rows () const |
| | Returns the number of rows in the matrix.
|
| int | cols () const |
| | Returns the number of columns in the matrix.
|
| Scalar | value (int row, int col) |
| | Returns an element of the variable matrix.
|
| Scalar | value (int index) |
| | Returns an element of the variable matrix.
|
| Eigen::Matrix< Scalar, Eigen::Dynamic, Eigen::Dynamic > | value () |
| | Returns the contents of the variable matrix.
|
| VariableMatrix< Scalar > | cwise_transform (function_ref< Variable< Scalar >(const Variable< Scalar > &x)> unary_op) const |
| | Transforms the matrix coefficient-wise with an unary operator.
|
| iterator | begin () |
| | Returns begin iterator.
|
| iterator | end () |
| | Returns end iterator.
|
| const_iterator | begin () const |
| | Returns const begin iterator.
|
| const_iterator | end () const |
| | Returns const end iterator.
|
| const_iterator | cbegin () const |
| | Returns const begin iterator.
|
| const_iterator | cend () const |
| | Returns const end iterator.
|
| reverse_iterator | rbegin () |
| | Returns reverse begin iterator.
|
| reverse_iterator | rend () |
| | Returns reverse end iterator.
|
| const_reverse_iterator | rbegin () const |
| | Returns const reverse begin iterator.
|
| const_reverse_iterator | rend () const |
| | Returns const reverse end iterator.
|
| const_reverse_iterator | crbegin () const |
| | Returns const reverse begin iterator.
|
| const_reverse_iterator | crend () const |
| | Returns const reverse end iterator.
|
| size_t | size () const |
| | Returns number of elements in matrix.
|
|
| template<EigenMatrixLike LHS, SleipnirMatrixLike< Scalar > RHS> |
| VariableMatrix< Scalar > | operator* (const LHS &lhs, const RHS &rhs) |
| | Matrix multiplication operator.
|
| template<SleipnirMatrixLike< Scalar > LHS, EigenMatrixLike RHS> |
| VariableMatrix< Scalar > | operator* (const LHS &lhs, const RHS &rhs) |
| | Matrix multiplication operator.
|
| template<SleipnirMatrixLike< Scalar > LHS, SleipnirMatrixLike< Scalar > RHS> |
| VariableMatrix< Scalar > | operator* (const LHS &lhs, const RHS &rhs) |
| | Matrix multiplication operator.
|
| template<EigenMatrixLike LHS> |
| VariableMatrix< Scalar > | operator* (const LHS &lhs, const Variable< Scalar > &rhs) |
| | Matrix-scalar multiplication operator.
|
| template<SleipnirMatrixLike< Scalar > LHS, ScalarLike RHS> |
| VariableMatrix< Scalar > | operator* (const LHS &lhs, const RHS &rhs) |
| | Matrix-scalar multiplication operator.
|
| template<EigenMatrixLike RHS> |
| VariableMatrix< Scalar > | operator* (const Variable< Scalar > &lhs, const RHS &rhs) |
| | Scalar-matrix multiplication operator.
|
| template<ScalarLike LHS, SleipnirMatrixLike< Scalar > RHS> |
| VariableMatrix< Scalar > | operator* (const LHS &lhs, const RHS &rhs) |
| | Scalar-matrix multiplication operator.
|
| template<EigenMatrixLike LHS> |
| VariableMatrix< Scalar > | operator/ (const LHS &lhs, const Variable< Scalar > &rhs) |
| | Binary division operator.
|
template<SleipnirMatrixLike< Scalar > LHS, ScalarLike RHS>
requires (!SleipnirScalarLike<RHS, Scalar>) |
| VariableMatrix< Scalar > | operator/ (const LHS &lhs, const RHS &rhs) |
| | Binary division operator.
|
| template<SleipnirMatrixLike< Scalar > LHS> |
| VariableMatrix< Scalar > | operator/ (const LHS &lhs, const Variable< Scalar > &rhs) |
| | Binary division operator.
|
| template<EigenMatrixLike LHS, SleipnirMatrixLike< Scalar > RHS> |
| VariableMatrix< Scalar > | operator+ (const LHS &lhs, const RHS &rhs) |
| | Binary addition operator.
|
| template<SleipnirMatrixLike< Scalar > LHS, EigenMatrixLike RHS> |
| VariableMatrix< Scalar > | operator+ (const LHS &lhs, const RHS &rhs) |
| | Binary addition operator.
|
| template<SleipnirMatrixLike< Scalar > LHS, SleipnirMatrixLike< Scalar > RHS> |
| VariableMatrix< Scalar > | operator+ (const LHS &lhs, const RHS &rhs) |
| | Binary addition operator.
|
| template<EigenMatrixLike LHS, SleipnirMatrixLike< Scalar > RHS> |
| VariableMatrix< Scalar > | operator- (const LHS &lhs, const RHS &rhs) |
| | Binary subtraction operator.
|
| template<SleipnirMatrixLike< Scalar > LHS, EigenMatrixLike RHS> |
| VariableMatrix< Scalar > | operator- (const LHS &lhs, const RHS &rhs) |
| | Binary subtraction operator.
|
| template<SleipnirMatrixLike< Scalar > LHS, SleipnirMatrixLike< Scalar > RHS> |
| VariableMatrix< Scalar > | operator- (const LHS &lhs, const RHS &rhs) |
| | Binary subtraction operator.
|
| VariableMatrix< Scalar > | operator- (const SleipnirMatrixLike< Scalar > auto &lhs) |
| | Unary minus operator.
|
template<typename Scalar_>
class slp::VariableMatrix< Scalar_ >
A matrix of autodiff variables.
- Template Parameters
-