![]() |
Sleipnir Python API
|
Public Member Functions | |
| None | __init__ (self) |
| None | __init__ (self, int rows) |
| None | __init__ (self, int rows, int cols) |
| None | __init__ (self, Sequence[Sequence[Variable]] list) |
| None | __init__ (self, Sequence[Sequence[float]] list) |
| None | __init__ (self, Annotated[NDArray[numpy.float64], dict(shape=(None, None))] values) |
| None | __init__ (self, Annotated[NDArray[numpy.float32], dict(shape=(None, None))] values) |
| None | __init__ (self, Variable variable) |
| None | __init__ (self, VariableBlock values) |
| None | __init__ (self, VariableBlock arg) |
| None | set_value (self, Annotated[NDArray[numpy.float64], dict(shape=(None, None))] values) |
| None | set_value (self, Annotated[NDArray[numpy.float32], dict(shape=(None, None))] values) |
| None | set_value (self, Annotated[NDArray[numpy.int64], dict(shape=(None, None))] values) |
| None | set_value (self, Annotated[NDArray[numpy.int32], dict(shape=(None, None))] values) |
| Variable | __setitem__ (self, int row, Variable value) |
| None | __setitem__ (self, tuple slices, object value) |
| Variable | __getitem__ (self, int row) |
| object | __getitem__ (self, tuple slices) |
| VariableBlock | row (self, int row) |
| VariableBlock | col (self, int col) |
| VariableMatrix | __mul__ (self, VariableMatrix rhs) |
| VariableMatrix | __mul__ (self, VariableBlock rhs) |
| VariableMatrix | __mul__ (self, VariableMatrix rhs) |
| VariableMatrix | __mul__ (self, VariableBlock rhs) |
| VariableMatrix | __mul__ (self, Variable rhs) |
| VariableMatrix | __mul__ (self, float rhs) |
| VariableMatrix | __mul__ (self, VariableBlock rhs) |
| VariableMatrix | __rmul__ (self, VariableMatrix lhs) |
| VariableMatrix | __rmul__ (self, VariableBlock lhs) |
| VariableMatrix | __rmul__ (self, VariableMatrix lhs) |
| VariableMatrix | __rmul__ (self, VariableBlock lhs) |
| VariableMatrix | __rmul__ (self, Variable lhs) |
| VariableMatrix | __rmul__ (self, float lhs) |
| VariableMatrix | __rmul__ (self, VariableBlock rhs) |
| VariableMatrix | __matmul__ (self, VariableMatrix rhs) |
| VariableMatrix | __matmul__ (self, VariableBlock rhs) |
| VariableMatrix | __matmul__ (self, VariableMatrix rhs) |
| VariableMatrix | __matmul__ (self, VariableBlock rhs) |
| VariableMatrix | __matmul__ (self, VariableBlock rhs) |
| object | __array_ufunc__ (self, object ufunc, str method, *inputs, **kwargs) |
| VariableMatrix | __truediv__ (self, Variable rhs) |
| VariableMatrix | __truediv__ (self, float rhs) |
| VariableMatrix | __itruediv__ (self, Variable rhs) |
| VariableMatrix | __itruediv__ (self, float rhs) |
| VariableMatrix | __add__ (self, VariableMatrix rhs) |
| VariableMatrix | __add__ (self, Variable rhs) |
| VariableMatrix | __add__ (self, VariableMatrix rhs) |
| VariableMatrix | __add__ (self, Annotated[NDArray[numpy.float64], dict(shape=(None, None))] rhs) |
| VariableMatrix | __add__ (self, VariableBlock rhs) |
| VariableMatrix | __radd__ (self, Variable lhs) |
| VariableMatrix | __radd__ (self, float lhs) |
| VariableMatrix | __radd__ (self, Annotated[NDArray[numpy.float64], dict(shape=(None, None))] lhs) |
| VariableMatrix | __sub__ (self, VariableMatrix rhs) |
| VariableMatrix | __sub__ (self, Variable rhs) |
| VariableMatrix | __sub__ (self, Annotated[NDArray[numpy.float64], dict(shape=(None, None))] rhs) |
| VariableMatrix | __sub__ (self, VariableBlock rhs) |
| VariableMatrix | __rsub__ (self, Variable lhs) |
| VariableMatrix | __rsub__ (self, Annotated[NDArray[numpy.float64], dict(shape=(None, None))] lhs) |
| VariableMatrix | __neg__ (self) |
| VariableMatrix | T (self) |
| int | rows (self) |
| int | cols (self) |
| tuple | shape (self) |
| float | value (self, int row, int col) |
| float | value (self, int index) |
| Annotated[NDArray[numpy.float64], dict(shape=(None, None), order='F')] | value (self) |
| VariableMatrix | cwise_map (self, Callable[[Variable], Variable] func) |
| EqualityConstraints | __eq__ (self, VariableMatrix rhs) |
| EqualityConstraints | __eq__ (self, Variable rhs) |
| EqualityConstraints | __eq__ (self, float rhs) |
| EqualityConstraints | __eq__ (self, int rhs) |
| EqualityConstraints | __eq__ (self, Variable lhs) |
| EqualityConstraints | __eq__ (self, float lhs) |
| EqualityConstraints | __eq__ (self, int lhs) |
| EqualityConstraints | __eq__ (self, VariableBlock rhs) |
| EqualityConstraints | __eq__ (self, Annotated[NDArray[numpy.float64], dict(shape=(None, None))] rhs) |
| InequalityConstraints | __lt__ (self, VariableMatrix rhs) |
| InequalityConstraints | __lt__ (self, Variable rhs) |
| InequalityConstraints | __lt__ (self, float rhs) |
| InequalityConstraints | __lt__ (self, int rhs) |
| InequalityConstraints | __lt__ (self, Variable lhs) |
| InequalityConstraints | __lt__ (self, float lhs) |
| InequalityConstraints | __lt__ (self, int lhs) |
| InequalityConstraints | __lt__ (self, VariableBlock rhs) |
| InequalityConstraints | __lt__ (self, Annotated[NDArray[numpy.float64], dict(shape=(None, None))] rhs) |
| InequalityConstraints | __gt__ (self, Variable lhs) |
| InequalityConstraints | __gt__ (self, float lhs) |
| InequalityConstraints | __gt__ (self, int lhs) |
| InequalityConstraints | __gt__ (self, VariableMatrix rhs) |
| InequalityConstraints | __gt__ (self, Variable rhs) |
| InequalityConstraints | __gt__ (self, float rhs) |
| InequalityConstraints | __gt__ (self, int rhs) |
| InequalityConstraints | __gt__ (self, VariableBlock rhs) |
| InequalityConstraints | __gt__ (self, Annotated[NDArray[numpy.float64], dict(shape=(None, None))] rhs) |
| InequalityConstraints | __le__ (self, VariableMatrix rhs) |
| InequalityConstraints | __le__ (self, Variable rhs) |
| InequalityConstraints | __le__ (self, float rhs) |
| InequalityConstraints | __le__ (self, int rhs) |
| InequalityConstraints | __le__ (self, Variable lhs) |
| InequalityConstraints | __le__ (self, float lhs) |
| InequalityConstraints | __le__ (self, int lhs) |
| InequalityConstraints | __le__ (self, VariableBlock rhs) |
| InequalityConstraints | __le__ (self, Annotated[NDArray[numpy.float64], dict(shape=(None, None))] rhs) |
| InequalityConstraints | __ge__ (self, Variable lhs) |
| InequalityConstraints | __ge__ (self, float lhs) |
| InequalityConstraints | __ge__ (self, int lhs) |
| InequalityConstraints | __ge__ (self, VariableMatrix rhs) |
| InequalityConstraints | __ge__ (self, Variable rhs) |
| InequalityConstraints | __ge__ (self, float rhs) |
| InequalityConstraints | __ge__ (self, int rhs) |
| InequalityConstraints | __ge__ (self, VariableBlock rhs) |
| InequalityConstraints | __ge__ (self, Annotated[NDArray[numpy.float64], dict(shape=(None, None))] rhs) |
| int | __len__ (self) |
| Iterator[Variable] | __iter__ (self) |
Static Public Member Functions | |
| VariableMatrix | zero (int rows, int cols) |
| VariableMatrix | ones (int rows, int cols) |
A matrix of autodiff variables.
Template parameter ``Scalar_``:
Scalar type.
| None jormungandr.autodiff.VariableMatrix.__init__ | ( | self | ) |
Constructs an empty VariableMatrix.
| None jormungandr.autodiff.VariableMatrix.__init__ | ( | self, | |
| int | rows | ||
| ) |
Constructs a zero-initialized VariableMatrix column vector with the
given rows.
Parameter ``rows``:
The number of matrix rows.
| None jormungandr.autodiff.VariableMatrix.__init__ | ( | self, | |
| int | rows, | ||
| int | cols | ||
| ) |
Constructs a zero-initialized VariableMatrix with the given
dimensions.
Parameter ``rows``:
The number of matrix rows.
Parameter ``cols``:
The number of matrix columns.
| None jormungandr.autodiff.VariableMatrix.__init__ | ( | self, | |
| Sequence[Sequence[Variable]] | list | ||
| ) |
Constructs a scalar VariableMatrix from a nested list of Variables.
Parameter ``list``:
The nested list of Variables.
| None jormungandr.autodiff.VariableMatrix.__init__ | ( | self, | |
| Sequence[Sequence[float]] | list | ||
| ) |
Constructs a scalar VariableMatrix from a nested list of scalars.
This overload is for Python bindings only.
Parameter ``list``:
The nested list of Variables.
| None jormungandr.autodiff.VariableMatrix.__init__ | ( | self, | |
| Annotated[NDArray[numpy.float64], dict(shape=(None, None))] | values | ||
| ) |
Constructs a VariableMatrix from an Eigen matrix.
Parameter ``values``:
Eigen matrix of values.
| None jormungandr.autodiff.VariableMatrix.__init__ | ( | self, | |
| Annotated[NDArray[numpy.float32], dict(shape=(None, None))] | values | ||
| ) |
Constructs a VariableMatrix from an Eigen matrix.
Parameter ``values``:
Eigen matrix of values.
| None jormungandr.autodiff.VariableMatrix.__init__ | ( | self, | |
| Variable | variable | ||
| ) |
Constructs a scalar VariableMatrix from a Variable.
Parameter ``variable``:
Variable.
| None jormungandr.autodiff.VariableMatrix.__init__ | ( | self, | |
| VariableBlock | values | ||
| ) |
Constructs a VariableMatrix from a VariableBlock.
Parameter ``values``:
VariableBlock of values.
| None jormungandr.autodiff.VariableMatrix.__init__ | ( | self, | |
| VariableBlock | arg | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__add__ | ( | self, | |
| Annotated[NDArray[numpy.float64], dict(shape=(None, None))] | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__add__ | ( | self, | |
| Variable | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__add__ | ( | self, | |
| VariableBlock | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__add__ | ( | self, | |
| VariableMatrix | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__add__ | ( | self, | |
| VariableMatrix | rhs | ||
| ) |
| object jormungandr.autodiff.VariableMatrix.__array_ufunc__ | ( | self, | |
| object | ufunc, | ||
| str | method, | ||
| * | inputs, | ||
| ** | kwargs | ||
| ) |
| EqualityConstraints jormungandr.autodiff.VariableMatrix.__eq__ | ( | self, | |
| Annotated[NDArray[numpy.float64], dict(shape=(None, None))] | rhs | ||
| ) |
| EqualityConstraints jormungandr.autodiff.VariableMatrix.__eq__ | ( | self, | |
| float | lhs | ||
| ) |
| EqualityConstraints jormungandr.autodiff.VariableMatrix.__eq__ | ( | self, | |
| float | rhs | ||
| ) |
| EqualityConstraints jormungandr.autodiff.VariableMatrix.__eq__ | ( | self, | |
| int | lhs | ||
| ) |
| EqualityConstraints jormungandr.autodiff.VariableMatrix.__eq__ | ( | self, | |
| int | rhs | ||
| ) |
| EqualityConstraints jormungandr.autodiff.VariableMatrix.__eq__ | ( | self, | |
| Variable | lhs | ||
| ) |
| EqualityConstraints jormungandr.autodiff.VariableMatrix.__eq__ | ( | self, | |
| Variable | rhs | ||
| ) |
| EqualityConstraints jormungandr.autodiff.VariableMatrix.__eq__ | ( | self, | |
| VariableBlock | rhs | ||
| ) |
| EqualityConstraints jormungandr.autodiff.VariableMatrix.__eq__ | ( | self, | |
| VariableMatrix | rhs | ||
| ) |
Equality operator that returns an equality constraint for two
Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__ge__ | ( | self, | |
| Annotated[NDArray[numpy.float64], dict(shape=(None, None))] | rhs | ||
| ) |
Greater-than-or-equal-to comparison operator that returns an
inequality constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__ge__ | ( | self, | |
| float | lhs | ||
| ) |
Less-than-or-equal-to comparison operator that returns an inequality
constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__ge__ | ( | self, | |
| float | rhs | ||
| ) |
Greater-than-or-equal-to comparison operator that returns an
inequality constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__ge__ | ( | self, | |
| int | lhs | ||
| ) |
Less-than-or-equal-to comparison operator that returns an inequality
constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__ge__ | ( | self, | |
| int | rhs | ||
| ) |
Greater-than-or-equal-to comparison operator that returns an
inequality constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__ge__ | ( | self, | |
| Variable | lhs | ||
| ) |
Less-than-or-equal-to comparison operator that returns an inequality
constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__ge__ | ( | self, | |
| Variable | rhs | ||
| ) |
Greater-than-or-equal-to comparison operator that returns an
inequality constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__ge__ | ( | self, | |
| VariableBlock | rhs | ||
| ) |
Greater-than-or-equal-to comparison operator that returns an
inequality constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__ge__ | ( | self, | |
| VariableMatrix | rhs | ||
| ) |
Greater-than-or-equal-to comparison operator that returns an
inequality constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| Variable jormungandr.autodiff.VariableMatrix.__getitem__ | ( | self, | |
| int | row | ||
| ) |
Returns the element at the given index.
Parameter ``index``:
The index.
Returns:
The element at the given index.
| object jormungandr.autodiff.VariableMatrix.__getitem__ | ( | self, | |
| tuple | slices | ||
| ) |
Returns the element at the given row and column.
Parameter ``row``:
The row.
Parameter ``col``:
The column.
Returns:
The element at the given row and column.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__gt__ | ( | self, | |
| Annotated[NDArray[numpy.float64], dict(shape=(None, None))] | rhs | ||
| ) |
Greater-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__gt__ | ( | self, | |
| float | lhs | ||
| ) |
Less-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__gt__ | ( | self, | |
| float | rhs | ||
| ) |
Greater-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__gt__ | ( | self, | |
| int | lhs | ||
| ) |
Less-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__gt__ | ( | self, | |
| int | rhs | ||
| ) |
Greater-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__gt__ | ( | self, | |
| Variable | lhs | ||
| ) |
Less-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__gt__ | ( | self, | |
| Variable | rhs | ||
| ) |
Greater-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__gt__ | ( | self, | |
| VariableBlock | rhs | ||
| ) |
Greater-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__gt__ | ( | self, | |
| VariableMatrix | rhs | ||
| ) |
Greater-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| Iterator[Variable] jormungandr.autodiff.VariableMatrix.__iter__ | ( | self | ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__itruediv__ | ( | self, | |
| float | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__itruediv__ | ( | self, | |
| Variable | rhs | ||
| ) |
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__le__ | ( | self, | |
| Annotated[NDArray[numpy.float64], dict(shape=(None, None))] | rhs | ||
| ) |
Less-than-or-equal-to comparison operator that returns an inequality
constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__le__ | ( | self, | |
| float | lhs | ||
| ) |
Greater-than-or-equal-to comparison operator that returns an
inequality constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__le__ | ( | self, | |
| float | rhs | ||
| ) |
Less-than-or-equal-to comparison operator that returns an inequality
constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__le__ | ( | self, | |
| int | lhs | ||
| ) |
Greater-than-or-equal-to comparison operator that returns an
inequality constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__le__ | ( | self, | |
| int | rhs | ||
| ) |
Less-than-or-equal-to comparison operator that returns an inequality
constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__le__ | ( | self, | |
| Variable | lhs | ||
| ) |
Greater-than-or-equal-to comparison operator that returns an
inequality constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__le__ | ( | self, | |
| Variable | rhs | ||
| ) |
Less-than-or-equal-to comparison operator that returns an inequality
constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__le__ | ( | self, | |
| VariableBlock | rhs | ||
| ) |
Less-than-or-equal-to comparison operator that returns an inequality
constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__le__ | ( | self, | |
| VariableMatrix | rhs | ||
| ) |
Less-than-or-equal-to comparison operator that returns an inequality
constraint for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| int jormungandr.autodiff.VariableMatrix.__len__ | ( | self | ) |
Returns the number of rows in the matrix.
Returns:
The number of rows in the matrix.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__lt__ | ( | self, | |
| Annotated[NDArray[numpy.float64], dict(shape=(None, None))] | rhs | ||
| ) |
Less-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__lt__ | ( | self, | |
| float | lhs | ||
| ) |
Greater-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__lt__ | ( | self, | |
| float | rhs | ||
| ) |
Less-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__lt__ | ( | self, | |
| int | lhs | ||
| ) |
Greater-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__lt__ | ( | self, | |
| int | rhs | ||
| ) |
Less-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__lt__ | ( | self, | |
| Variable | lhs | ||
| ) |
Greater-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__lt__ | ( | self, | |
| Variable | rhs | ||
| ) |
Less-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__lt__ | ( | self, | |
| VariableBlock | rhs | ||
| ) |
Less-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| InequalityConstraints jormungandr.autodiff.VariableMatrix.__lt__ | ( | self, | |
| VariableMatrix | rhs | ||
| ) |
Less-than comparison operator that returns an inequality constraint
for two Variables.
Parameter ``lhs``:
Left-hand side.
Parameter ``rhs``:
Left-hand side.
| VariableMatrix jormungandr.autodiff.VariableMatrix.__matmul__ | ( | self, | |
| VariableBlock | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__matmul__ | ( | self, | |
| VariableBlock | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__matmul__ | ( | self, | |
| VariableBlock | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__matmul__ | ( | self, | |
| VariableMatrix | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__matmul__ | ( | self, | |
| VariableMatrix | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__mul__ | ( | self, | |
| float | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__mul__ | ( | self, | |
| Variable | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__mul__ | ( | self, | |
| VariableBlock | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__mul__ | ( | self, | |
| VariableBlock | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__mul__ | ( | self, | |
| VariableBlock | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__mul__ | ( | self, | |
| VariableMatrix | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__mul__ | ( | self, | |
| VariableMatrix | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__neg__ | ( | self | ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__radd__ | ( | self, | |
| Annotated[NDArray[numpy.float64], dict(shape=(None, None))] | lhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__radd__ | ( | self, | |
| float | lhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__radd__ | ( | self, | |
| Variable | lhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__rmul__ | ( | self, | |
| float | lhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__rmul__ | ( | self, | |
| Variable | lhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__rmul__ | ( | self, | |
| VariableBlock | lhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__rmul__ | ( | self, | |
| VariableBlock | lhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__rmul__ | ( | self, | |
| VariableBlock | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__rmul__ | ( | self, | |
| VariableMatrix | lhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__rmul__ | ( | self, | |
| VariableMatrix | lhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__rsub__ | ( | self, | |
| Annotated[NDArray[numpy.float64], dict(shape=(None, None))] | lhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__rsub__ | ( | self, | |
| Variable | lhs | ||
| ) |
| None jormungandr.autodiff.VariableMatrix.__setitem__ | ( | self, | |
| tuple | slices, | ||
| object | value | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__sub__ | ( | self, | |
| Annotated[NDArray[numpy.float64], dict(shape=(None, None))] | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__sub__ | ( | self, | |
| Variable | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__sub__ | ( | self, | |
| VariableBlock | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__sub__ | ( | self, | |
| VariableMatrix | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__truediv__ | ( | self, | |
| float | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.__truediv__ | ( | self, | |
| Variable | rhs | ||
| ) |
| VariableBlock jormungandr.autodiff.VariableMatrix.col | ( | self, | |
| int | col | ||
| ) |
Returns a column slice of the variable matrix.
Parameter ``col``:
The column to slice.
Returns:
A column slice of the variable matrix.
| int jormungandr.autodiff.VariableMatrix.cols | ( | self | ) |
Returns the number of columns in the matrix.
Returns:
The number of columns in the matrix.
| VariableMatrix jormungandr.autodiff.VariableMatrix.cwise_map | ( | self, | |
| Callable[[Variable], Variable] | func | ||
| ) |
Transforms the matrix coefficient-wise with an unary operator.
Parameter ``unary_op``:
The unary operator to use for the transform operation.
Returns:
Result of the unary operator.
|
static |
Returns a variable matrix filled with ones.
Parameter ``rows``:
The number of matrix rows.
Parameter ``cols``:
The number of matrix columns.
Returns:
A variable matrix filled with ones.
| VariableBlock jormungandr.autodiff.VariableMatrix.row | ( | self, | |
| int | row | ||
| ) |
Returns a row slice of the variable matrix.
Parameter ``row``:
The row to slice.
Returns:
A row slice of the variable matrix.
| int jormungandr.autodiff.VariableMatrix.rows | ( | self | ) |
Returns the number of rows in the matrix.
Returns:
The number of rows in the matrix.
| None jormungandr.autodiff.VariableMatrix.set_value | ( | self, | |
| Annotated[NDArray[numpy.float32], dict(shape=(None, None))] | values | ||
| ) |
| None jormungandr.autodiff.VariableMatrix.set_value | ( | self, | |
| Annotated[NDArray[numpy.float64], dict(shape=(None, None))] | values | ||
| ) |
Sets the VariableMatrix's internal values.
Parameter ``values``:
Eigen matrix of values.
| None jormungandr.autodiff.VariableMatrix.set_value | ( | self, | |
| Annotated[NDArray[numpy.int32], dict(shape=(None, None))] | values | ||
| ) |
| None jormungandr.autodiff.VariableMatrix.set_value | ( | self, | |
| Annotated[NDArray[numpy.int64], dict(shape=(None, None))] | values | ||
| ) |
| tuple jormungandr.autodiff.VariableMatrix.shape | ( | self | ) |
| VariableMatrix jormungandr.autodiff.VariableMatrix.T | ( | self | ) |
Returns the transpose of the variable matrix.
Returns:
The transpose of the variable matrix.
| Annotated[NDArray[numpy.float64], dict(shape=(None, None), order='F')] jormungandr.autodiff.VariableMatrix.value | ( | self | ) |
Returns the contents of the variable matrix.
Returns:
The contents of the variable matrix.
| float jormungandr.autodiff.VariableMatrix.value | ( | self, | |
| int | index | ||
| ) |
Returns an element of the variable matrix.
Parameter ``index``:
The index of the element to return.
Returns:
An element of the variable matrix.
| float jormungandr.autodiff.VariableMatrix.value | ( | self, | |
| int | row, | ||
| int | col | ||
| ) |
Returns an element of the variable matrix.
Parameter ``row``:
The row of the element to return.
Parameter ``col``:
The column of the element to return.
Returns:
An element of the variable matrix.
|
static |
Returns a variable matrix filled with zeroes.
Parameter ``rows``:
The number of matrix rows.
Parameter ``cols``:
The number of matrix columns.
Returns:
A variable matrix filled with zeroes.