Sleipnir Python API
|
Public Member Functions | |
VariableMatrix | __mul__ (self, VariableMatrix rhs) |
VariableMatrix | __mul__ (self, VariableBlock rhs) |
VariableMatrix | __mul__ (self, Variable rhs) |
VariableMatrix | __mul__ (self, float rhs) |
VariableMatrix | __add__ (self, VariableMatrix rhs) |
VariableMatrix | __add__ (self, VariableBlock rhs) |
VariableMatrix | __add__ (self, Annotated[ArrayLike, dict(dtype='float64', shape=(None, None))] rhs) |
VariableMatrix | __add__ (self, VariableBlock rhs) |
VariableMatrix | __sub__ (self, VariableMatrix rhs) |
VariableMatrix | __sub__ (self, VariableBlock rhs) |
VariableMatrix | __sub__ (self, Annotated[ArrayLike, dict(dtype='float64', shape=(None, None))] rhs) |
VariableMatrix | __sub__ (self, VariableBlock rhs) |
EqualityConstraints | __eq__ (self, VariableMatrix rhs) |
EqualityConstraints | __eq__ (self, VariableBlock 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, Annotated[ArrayLike, dict(dtype='float64', shape=(None, None))] rhs) |
InequalityConstraints | __lt__ (self, VariableMatrix rhs) |
InequalityConstraints | __lt__ (self, VariableBlock 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, Annotated[ArrayLike, dict(dtype='float64', shape=(None, None))] rhs) |
InequalityConstraints | __le__ (self, VariableMatrix rhs) |
InequalityConstraints | __le__ (self, VariableBlock 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, Annotated[ArrayLike, dict(dtype='float64', shape=(None, None))] rhs) |
InequalityConstraints | __gt__ (self, VariableMatrix rhs) |
InequalityConstraints | __gt__ (self, Variable lhs) |
InequalityConstraints | __gt__ (self, float lhs) |
InequalityConstraints | __gt__ (self, int lhs) |
InequalityConstraints | __gt__ (self, VariableBlock rhs) |
InequalityConstraints | __gt__ (self, Variable rhs) |
InequalityConstraints | __gt__ (self, float rhs) |
InequalityConstraints | __gt__ (self, int rhs) |
InequalityConstraints | __gt__ (self, Annotated[ArrayLike, dict(dtype='float64', shape=(None, None))] rhs) |
InequalityConstraints | __ge__ (self, VariableMatrix rhs) |
InequalityConstraints | __ge__ (self, Variable lhs) |
InequalityConstraints | __ge__ (self, float lhs) |
InequalityConstraints | __ge__ (self, int lhs) |
InequalityConstraints | __ge__ (self, VariableBlock rhs) |
InequalityConstraints | __ge__ (self, Variable rhs) |
InequalityConstraints | __ge__ (self, float rhs) |
InequalityConstraints | __ge__ (self, int rhs) |
InequalityConstraints | __ge__ (self, Annotated[ArrayLike, dict(dtype='float64', shape=(None, None))] rhs) |
None | set_value (self, float value) |
None | set_value (self, Annotated[ArrayLike, dict(dtype='float64', shape=(None, None))] values) |
None | set_value (self, Annotated[ArrayLike, dict(dtype='float32', shape=(None, None))] values) |
None | set_value (self, Annotated[ArrayLike, dict(dtype='int64', shape=(None, None))] values) |
None | set_value (self, Annotated[ArrayLike, dict(dtype='int32', 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 | __rmul__ (self, VariableBlock lhs) |
VariableMatrix | __rmul__ (self, Variable lhs) |
VariableMatrix | __rmul__ (self, float lhs) |
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 | __neg__ (self) |
Variable | __pow__ (self, int power) |
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[ArrayLike, dict(dtype='float64', shape=(None, None), order='F')] | value (self) |
VariableMatrix | cwise_transform (self, Callable[[Variable], Variable] func) |
int | __len__ (self) |
Iterator[Variable] | __iter__ (self) |
A submatrix of autodiff variables with reference semantics. Template parameter ``Mat``: The type of the matrix whose storage this class points to.
VariableMatrix jormungandr.autodiff.VariableBlock.__add__ | ( | self, | |
Annotated[ArrayLike, dict(dtype='float64', shape=(None, None))] | rhs | ||
) |
VariableMatrix jormungandr.autodiff.VariableBlock.__add__ | ( | self, | |
VariableBlock | rhs | ||
) |
VariableMatrix jormungandr.autodiff.VariableBlock.__add__ | ( | self, | |
VariableBlock | rhs | ||
) |
VariableMatrix jormungandr.autodiff.VariableBlock.__add__ | ( | self, | |
VariableMatrix | rhs | ||
) |
object jormungandr.autodiff.VariableBlock.__array_ufunc__ | ( | self, | |
object | ufunc, | ||
str | method, | ||
* | inputs, | ||
** | kwargs | ||
) |
EqualityConstraints jormungandr.autodiff.VariableBlock.__eq__ | ( | self, | |
Annotated[ArrayLike, dict(dtype='float64', shape=(None, None))] | rhs | ||
) |
EqualityConstraints jormungandr.autodiff.VariableBlock.__eq__ | ( | self, | |
float | lhs | ||
) |
EqualityConstraints jormungandr.autodiff.VariableBlock.__eq__ | ( | self, | |
float | rhs | ||
) |
EqualityConstraints jormungandr.autodiff.VariableBlock.__eq__ | ( | self, | |
int | lhs | ||
) |
EqualityConstraints jormungandr.autodiff.VariableBlock.__eq__ | ( | self, | |
int | rhs | ||
) |
EqualityConstraints jormungandr.autodiff.VariableBlock.__eq__ | ( | self, | |
Variable | lhs | ||
) |
EqualityConstraints jormungandr.autodiff.VariableBlock.__eq__ | ( | self, | |
Variable | rhs | ||
) |
EqualityConstraints jormungandr.autodiff.VariableBlock.__eq__ | ( | self, | |
VariableBlock | rhs | ||
) |
EqualityConstraints jormungandr.autodiff.VariableBlock.__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.VariableBlock.__ge__ | ( | self, | |
Annotated[ArrayLike, dict(dtype='float64', 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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__getitem__ | ( | self, | |
int | row | ||
) |
Returns a scalar subblock at the given row. Parameter ``row``: The scalar subblock's row.
object jormungandr.autodiff.VariableBlock.__getitem__ | ( | self, | |
tuple | slices | ||
) |
Returns a scalar subblock at the given row and column. Parameter ``row``: The scalar subblock's row. Parameter ``col``: The scalar subblock's column.
InequalityConstraints jormungandr.autodiff.VariableBlock.__gt__ | ( | self, | |
Annotated[ArrayLike, dict(dtype='float64', 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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__iter__ | ( | self | ) |
InequalityConstraints jormungandr.autodiff.VariableBlock.__le__ | ( | self, | |
Annotated[ArrayLike, dict(dtype='float64', 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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__len__ | ( | self | ) |
Returns number of rows in the matrix.
InequalityConstraints jormungandr.autodiff.VariableBlock.__lt__ | ( | self, | |
Annotated[ArrayLike, dict(dtype='float64', 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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__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.VariableBlock.__matmul__ | ( | self, | |
VariableBlock | rhs | ||
) |
VariableMatrix jormungandr.autodiff.VariableBlock.__mul__ | ( | self, | |
float | rhs | ||
) |
VariableMatrix jormungandr.autodiff.VariableBlock.__mul__ | ( | self, | |
Variable | rhs | ||
) |
VariableMatrix jormungandr.autodiff.VariableBlock.__mul__ | ( | self, | |
VariableBlock | rhs | ||
) |
VariableMatrix jormungandr.autodiff.VariableBlock.__mul__ | ( | self, | |
VariableMatrix | rhs | ||
) |
VariableMatrix jormungandr.autodiff.VariableBlock.__neg__ | ( | self | ) |
Variable jormungandr.autodiff.VariableBlock.__pow__ | ( | self, | |
int | power | ||
) |
VariableMatrix jormungandr.autodiff.VariableBlock.__rmul__ | ( | self, | |
float | lhs | ||
) |
VariableMatrix jormungandr.autodiff.VariableBlock.__rmul__ | ( | self, | |
Variable | lhs | ||
) |
VariableMatrix jormungandr.autodiff.VariableBlock.__rmul__ | ( | self, | |
VariableBlock | lhs | ||
) |
None jormungandr.autodiff.VariableBlock.__setitem__ | ( | self, | |
tuple | slices, | ||
object | value | ||
) |
VariableMatrix jormungandr.autodiff.VariableBlock.__sub__ | ( | self, | |
Annotated[ArrayLike, dict(dtype='float64', shape=(None, None))] | rhs | ||
) |
VariableMatrix jormungandr.autodiff.VariableBlock.__sub__ | ( | self, | |
VariableBlock | rhs | ||
) |
VariableMatrix jormungandr.autodiff.VariableBlock.__sub__ | ( | self, | |
VariableBlock | rhs | ||
) |
VariableMatrix jormungandr.autodiff.VariableBlock.__sub__ | ( | self, | |
VariableMatrix | rhs | ||
) |
VariableMatrix jormungandr.autodiff.VariableBlock.__truediv__ | ( | self, | |
float | rhs | ||
) |
VariableMatrix jormungandr.autodiff.VariableBlock.__truediv__ | ( | self, | |
Variable | rhs | ||
) |
VariableBlock jormungandr.autodiff.VariableBlock.col | ( | self, | |
int | col | ||
) |
Returns a column slice of the variable matrix. Parameter ``col``: The column to slice.
int jormungandr.autodiff.VariableBlock.cols | ( | self | ) |
Returns number of columns in the matrix.
VariableMatrix jormungandr.autodiff.VariableBlock.cwise_transform | ( | 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.
VariableBlock jormungandr.autodiff.VariableBlock.row | ( | self, | |
int | row | ||
) |
Returns a row slice of the variable matrix. Parameter ``row``: The row to slice.
int jormungandr.autodiff.VariableBlock.rows | ( | self | ) |
Returns number of rows in the matrix.
None jormungandr.autodiff.VariableBlock.set_value | ( | self, | |
Annotated[ArrayLike, dict(dtype='float32', shape=(None, None))] | values | ||
) |
Sets block's internal values. Parameter ``values``: Eigen matrix of values.
None jormungandr.autodiff.VariableBlock.set_value | ( | self, | |
Annotated[ArrayLike, dict(dtype='float64', shape=(None, None))] | values | ||
) |
Sets block's internal values. Parameter ``values``: Eigen matrix of values.
None jormungandr.autodiff.VariableBlock.set_value | ( | self, | |
Annotated[ArrayLike, dict(dtype='int32', shape=(None, None))] | values | ||
) |
Sets block's internal values. Parameter ``values``: Eigen matrix of values.
None jormungandr.autodiff.VariableBlock.set_value | ( | self, | |
Annotated[ArrayLike, dict(dtype='int64', shape=(None, None))] | values | ||
) |
Sets block's internal values. Parameter ``values``: Eigen matrix of values.
None jormungandr.autodiff.VariableBlock.set_value | ( | self, | |
float | value | ||
) |
Assigns a double to the block. This only works for blocks with one row and one column. Parameter ``value``: Value to assign.
tuple jormungandr.autodiff.VariableBlock.shape | ( | self | ) |
VariableMatrix jormungandr.autodiff.VariableBlock.T | ( | self | ) |
Returns the transpose of the variable matrix.
Annotated[ArrayLike, dict(dtype='float64', shape=(None, None), order='F')] jormungandr.autodiff.VariableBlock.value | ( | self | ) |
Returns the contents of the variable matrix.
float jormungandr.autodiff.VariableBlock.value | ( | self, | |
int | index | ||
) |
Returns a row of the variable column vector. Parameter ``index``: The index of the element to return.
float jormungandr.autodiff.VariableBlock.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.