Sleipnir C++ API
|
#include <sleipnir/autodiff/VariableMatrix.hpp>
Classes | |
class | const_iterator |
struct | empty_t |
class | iterator |
Static Public Member Functions | |
static VariableMatrix | Zero (int rows, int cols) |
static VariableMatrix | Ones (int rows, int cols) |
Static Public Attributes | |
static constexpr empty_t | empty {} |
A matrix of autodiff variables.
|
default |
Constructs an empty VariableMatrix.
|
inlineexplicit |
Constructs a VariableMatrix column vector with the given rows.
rows | The number of matrix rows. |
Constructs a zero-initialized VariableMatrix with the given dimensions.
rows | The number of matrix rows. |
cols | The number of matrix columns. |
Constructs an empty VariableMatrix with the given dimensions.
rows | The number of matrix rows. |
cols | The number of matrix columns. |
|
inline |
Constructs a scalar VariableMatrix from a nested list of Variables.
list | The nested list of Variables. |
|
inline |
Constructs a scalar VariableMatrix from a nested list of doubles.
This overload is for Python bindings only.
list | The nested list of Variables. |
|
inline |
Constructs a scalar VariableMatrix from a nested list of Variables.
This overload is for Python bindings only.
list | The nested list of Variables. |
Constructs a VariableMatrix from an Eigen matrix.
values | Eigen matrix of values. |
Constructs a VariableMatrix from an Eigen diagonal matrix.
values | Diagonal matrix of values. |
Constructs a scalar VariableMatrix from a Variable.
variable | Variable. |
|
inline |
Constructs a scalar VariableMatrix from a Variable.
variable | Variable. |
|
inline |
Constructs a VariableMatrix from a VariableBlock.
values | VariableBlock of values. |
|
inline |
Constructs a VariableMatrix from a VariableBlock.
values | VariableBlock of values. |
|
inline |
Returns begin iterator.
|
inline |
Returns begin iterator.
|
inline |
Returns a block of the variable matrix.
rowOffset | The row offset of the block selection. |
colOffset | The column offset of the block selection. |
blockRows | The number of rows in the block selection. |
blockCols | The number of columns in the block selection. |
|
inline |
Returns a block of the variable matrix.
rowOffset | The row offset of the block selection. |
colOffset | The column offset of the block selection. |
blockRows | The number of rows in the block selection. |
blockCols | The number of columns in the block selection. |
|
inline |
Returns begin iterator.
|
inline |
Returns end iterator.
|
inline |
Returns a column slice of the variable matrix.
col | The column to slice. |
|
inline |
Returns a column slice of the variable matrix.
col | The column to slice. |
|
inline |
Returns number of columns in the matrix.
|
inline |
Transforms the matrix coefficient-wise with an unary operator.
unaryOp | The unary operator to use for the transform operation. |
|
inline |
Returns end iterator.
|
inline |
Returns end iterator.
|
inlinestatic |
Returns a variable matrix filled with ones.
rows | The number of matrix rows. |
cols | The number of matrix columns. |
|
inline |
Implicit conversion operator from 1x1 VariableMatrix to Variable.
Returns a block pointing to the given row.
row | The block row. |
Returns a block pointing to the given row.
row | The block row. |
Returns a block pointing to the given row and column.
row | The block row. |
col | The block column. |
Returns a block pointing to the given row and column.
row | The block row. |
col | The block column. |
|
inline |
Returns a slice of the variable matrix.
The given slices aren't adjusted. This overload is for Python bindings only.
rowSlice | The row slice. |
rowSliceLength | The row slice length. |
colSlice | The column slice. |
colSliceLength | The column slice length. |
|
inline |
Returns a slice of the variable matrix.
The given slices aren't adjusted. This overload is for Python bindings only.
rowSlice | The row slice. |
rowSliceLength | The row slice length. |
colSlice | The column slice. |
colSliceLength | The column slice length. |
|
inline |
Returns a slice of the variable matrix.
rowSlice | The row slice. |
colSlice | The column slice. |
|
inline |
Returns a slice of the variable matrix.
rowSlice | The row slice. |
colSlice | The column slice. |
|
inline |
Compound matrix multiplication-assignment operator.
rhs | Variable to multiply. |
|
inline |
Compound addition-assignment operator.
rhs | Variable to add. |
|
inline |
Compound subtraction-assignment operator.
rhs | Variable to subtract. |
|
inline |
Compound matrix division-assignment operator (only enabled when rhs is a scalar).
rhs | Variable to divide. |
|
inline |
Assigns an Eigen matrix to a VariableMatrix.
values | Eigen matrix of values. |
|
inline |
Returns a row slice of the variable matrix.
row | The row to slice. |
|
inline |
Returns a row slice of the variable matrix.
row | The row to slice. |
|
inline |
Returns number of rows in the matrix.
|
inline |
Returns a segment of the variable vector.
offset | The offset of the segment. |
length | The length of the segment. |
|
inline |
Returns a segment of the variable vector.
offset | The offset of the segment. |
length | The length of the segment. |
Sets the VariableMatrix's internal values.
values | Eigen matrix of values. |
|
inline |
Returns number of elements in matrix.
|
inline |
Returns the transpose of the variable matrix.
|
inline |
Returns the contents of the variable matrix.
Returns a row of the variable column vector.
index | The index of the element to return. |
Returns an element of the variable matrix.
row | The row of the element to return. |
col | The column of the element to return. |
|
inlinestatic |
Returns a variable matrix filled with zeroes.
rows | The number of matrix rows. |
cols | The number of matrix columns. |
|
friend |
Scalar-matrix multiplication operator.
lhs | Operator left-hand side. |
rhs | Operator right-hand side. |
|
friend |
Matrix-scalar multiplication operator.
lhs | Operator left-hand side. |
rhs | Operator right-hand side. |
|
friend |
Matrix multiplication operator.
lhs | Operator left-hand side. |
rhs | Operator right-hand side. |
|
friend |
Matrix-scalar multiplication operator.
lhs | Operator left-hand side. |
rhs | Operator right-hand side. |
|
friend |
Scalar-matrix multiplication operator.
lhs | Operator left-hand side. |
rhs | Operator right-hand side. |
|
friend |
Binary addition operator.
lhs | Operator left-hand side. |
rhs | Operator right-hand side. |
|
friend |
Unary minus operator.
lhs | Operand for unary minus. |
|
friend |
Binary subtraction operator.
lhs | Operator left-hand side. |
rhs | Operator right-hand side. |
|
friend |
Binary division operator (only enabled when rhs is a scalar).
lhs | Operator left-hand side. |
rhs | Operator right-hand side. |