![]() |
Sleipnir Python API
|
Public Member Functions | |
| VariableMatrix | __mul__ (self, VariableMatrix 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[NDArray[numpy.float64], dict(shape=(None, None))] rhs) |
| VariableMatrix | __add__ (self, VariableBlock rhs) |
| VariableMatrix | __sub__ (self, VariableMatrix rhs) |
| VariableMatrix | __sub__ (self, VariableBlock rhs) |
| VariableMatrix | __sub__ (self, Annotated[NDArray[numpy.float64], dict(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[NDArray[numpy.float64], dict(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[NDArray[numpy.float64], dict(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[NDArray[numpy.float64], dict(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[NDArray[numpy.float64], dict(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[NDArray[numpy.float64], dict(shape=(None, None))] rhs) |
| None | set_value (self, float value) |
| 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) |
| object | __array_ufunc__ (self, object ufunc, str method, *inputs, **kwargs) |
| VariableMatrix | __rmul__ (self, Variable lhs) |
| VariableMatrix | __rmul__ (self, float lhs) |
| VariableMatrix | __truediv__ (self, Variable rhs) |
| VariableMatrix | __truediv__ (self, float rhs) |
| 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) |
| 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[NDArray[numpy.float64], dict(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[NDArray[numpy.float64], dict(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[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.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 index.
Parameter ``index``:
The scalar subblock's index.
Returns:
A scalar subblock at the given index.
| 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.
Returns:
A scalar subblock at the given row and column.
| InequalityConstraints jormungandr.autodiff.VariableBlock.__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.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[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.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 the number of rows in the matrix.
Returns:
The number of rows in the matrix.
| InequalityConstraints jormungandr.autodiff.VariableBlock.__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.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.__mul__ | ( | self, | |
| float | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableBlock.__mul__ | ( | self, | |
| Variable | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableBlock.__mul__ | ( | self, | |
| VariableMatrix | rhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableBlock.__neg__ | ( | self | ) |
| VariableMatrix jormungandr.autodiff.VariableBlock.__rmul__ | ( | self, | |
| float | lhs | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableBlock.__rmul__ | ( | self, | |
| Variable | lhs | ||
| ) |
| None jormungandr.autodiff.VariableBlock.__setitem__ | ( | self, | |
| tuple | slices, | ||
| object | value | ||
| ) |
| VariableMatrix jormungandr.autodiff.VariableBlock.__sub__ | ( | self, | |
| Annotated[NDArray[numpy.float64], dict(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.
Returns:
A column slice of the variable matrix.
| int jormungandr.autodiff.VariableBlock.cols | ( | self | ) |
Returns the number of columns in the matrix.
Returns:
The number of columns in the matrix.
| VariableMatrix jormungandr.autodiff.VariableBlock.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.
| VariableBlock jormungandr.autodiff.VariableBlock.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.VariableBlock.rows | ( | self | ) |
Returns the number of rows in the matrix.
Returns:
The number of rows in the matrix.
| None jormungandr.autodiff.VariableBlock.set_value | ( | self, | |
| Annotated[NDArray[numpy.float32], dict(shape=(None, None))] | values | ||
| ) |
Sets block's internal values.
Parameter ``values``:
Eigen matrix of values.
| None jormungandr.autodiff.VariableBlock.set_value | ( | self, | |
| Annotated[NDArray[numpy.float64], dict(shape=(None, None))] | values | ||
| ) |
Sets block's internal values.
Parameter ``values``:
Eigen matrix of values.
| None jormungandr.autodiff.VariableBlock.set_value | ( | self, | |
| Annotated[NDArray[numpy.int32], dict(shape=(None, None))] | values | ||
| ) |
Sets block's internal values.
Parameter ``values``:
Eigen matrix of values.
| None jormungandr.autodiff.VariableBlock.set_value | ( | self, | |
| Annotated[NDArray[numpy.int64], dict(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 scalar 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.
Returns:
The transpose of the variable matrix.
| Annotated[NDArray[numpy.float64], dict(shape=(None, None), order='F')] jormungandr.autodiff.VariableBlock.value | ( | self | ) |
Returns the contents of the variable matrix.
Returns:
The contents of the variable matrix.
| float jormungandr.autodiff.VariableBlock.value | ( | self, | |
| int | index | ||
| ) |
Returns an element of the variable block.
Parameter ``index``:
The index of the element to return.
Returns:
An element of the variable block.
| 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.
Returns:
An element of the variable matrix.