Sleipnir Python API
Loading...
Searching...
No Matches
jormungandr.autodiff.VariableMatrix Class Reference

Public Member Functions

None __init__ (self)
 
None __init__ (self, int rows)
 
None __init__ (self, int rows, int cols)
 
None __init__ (self, Sequence[Sequence[float]] list)
 
None __init__ (self, Sequence[Sequence[Variable]] list)
 
None __init__ (self, Variable variable)
 
None __init__ (self, VariableBlock values)
 
None __init__ (self, VariableBlock arg)
 
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 __mul__ (self, VariableMatrix rhs)
 
VariableMatrix __mul__ (self, Variable rhs)
 
VariableMatrix __mul__ (self, float rhs)
 
VariableMatrix __mul__ (self, VariableBlock rhs)
 
VariableMatrix __rmul__ (self, VariableMatrix 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)
 
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[ArrayLike, dict(dtype='float64', shape=(None, None))] rhs)
 
VariableMatrix __add__ (self, VariableBlock rhs)
 
VariableMatrix __radd__ (self, Variable lhs)
 
VariableMatrix __radd__ (self, float lhs)
 
VariableMatrix __radd__ (self, Annotated[ArrayLike, dict(dtype='float64', shape=(None, None))] lhs)
 
VariableMatrix __sub__ (self, VariableMatrix rhs)
 
VariableMatrix __sub__ (self, Variable rhs)
 
VariableMatrix __sub__ (self, Annotated[ArrayLike, dict(dtype='float64', shape=(None, None))] rhs)
 
VariableMatrix __sub__ (self, VariableBlock rhs)
 
VariableMatrix __rsub__ (self, Variable lhs)
 
VariableMatrix __rsub__ (self, Annotated[ArrayLike, dict(dtype='float64', shape=(None, None))] lhs)
 
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)
 
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[ArrayLike, dict(dtype='float64', 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[ArrayLike, dict(dtype='float64', 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[ArrayLike, dict(dtype='float64', 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[ArrayLike, dict(dtype='float64', 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[ArrayLike, dict(dtype='float64', 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)
 

Detailed Description

A matrix of autodiff variables.

Constructor & Destructor Documentation

◆ __init__() [1/8]

None jormungandr.autodiff.VariableMatrix.__init__ (   self)
Constructs an empty VariableMatrix.

◆ __init__() [2/8]

None jormungandr.autodiff.VariableMatrix.__init__ (   self,
int  rows 
)
Constructs a VariableMatrix column vector with the given rows.

Parameter ``rows``:
    The number of matrix rows.

◆ __init__() [3/8]

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.

◆ __init__() [4/8]

None jormungandr.autodiff.VariableMatrix.__init__ (   self,
Sequence[Sequence[float]]  list 
)
Constructs a scalar VariableMatrix from a nested list of Variables.

Parameter ``list``:
    The nested list of Variables.

◆ __init__() [5/8]

None jormungandr.autodiff.VariableMatrix.__init__ (   self,
Sequence[Sequence[Variable]]  list 
)
Constructs a scalar VariableMatrix from a nested list of doubles.

This overload is for Python bindings only.

Parameter ``list``:
    The nested list of Variables.

◆ __init__() [6/8]

None jormungandr.autodiff.VariableMatrix.__init__ (   self,
Variable  variable 
)
Constructs a VariableMatrix from an Eigen diagonal matrix.

Parameter ``values``:
    Diagonal matrix of values.

◆ __init__() [7/8]

None jormungandr.autodiff.VariableMatrix.__init__ (   self,
VariableBlock  values 
)
Constructs a scalar VariableMatrix from a Variable.

Parameter ``variable``:
    Variable.

◆ __init__() [8/8]

None jormungandr.autodiff.VariableMatrix.__init__ (   self,
VariableBlock  arg 
)

Member Function Documentation

◆ __add__() [1/5]

VariableMatrix jormungandr.autodiff.VariableMatrix.__add__ (   self,
Annotated[ArrayLike, dict(dtype='float64', shape=(None, None))]  rhs 
)

◆ __add__() [2/5]

VariableMatrix jormungandr.autodiff.VariableMatrix.__add__ (   self,
Variable  rhs 
)

◆ __add__() [3/5]

VariableMatrix jormungandr.autodiff.VariableMatrix.__add__ (   self,
VariableBlock  rhs 
)

◆ __add__() [4/5]

VariableMatrix jormungandr.autodiff.VariableMatrix.__add__ (   self,
VariableMatrix  rhs 
)

◆ __add__() [5/5]

VariableMatrix jormungandr.autodiff.VariableMatrix.__add__ (   self,
VariableMatrix  rhs 
)

◆ __array_ufunc__()

object jormungandr.autodiff.VariableMatrix.__array_ufunc__ (   self,
object  ufunc,
str  method,
inputs,
**  kwargs 
)

◆ __eq__() [1/9]

EqualityConstraints jormungandr.autodiff.VariableMatrix.__eq__ (   self,
Annotated[ArrayLike, dict(dtype='float64', shape=(None, None))]  rhs 
)

◆ __eq__() [2/9]

EqualityConstraints jormungandr.autodiff.VariableMatrix.__eq__ (   self,
float  lhs 
)

◆ __eq__() [3/9]

EqualityConstraints jormungandr.autodiff.VariableMatrix.__eq__ (   self,
float  rhs 
)

◆ __eq__() [4/9]

EqualityConstraints jormungandr.autodiff.VariableMatrix.__eq__ (   self,
int  lhs 
)

◆ __eq__() [5/9]

EqualityConstraints jormungandr.autodiff.VariableMatrix.__eq__ (   self,
int  rhs 
)

◆ __eq__() [6/9]

EqualityConstraints jormungandr.autodiff.VariableMatrix.__eq__ (   self,
Variable  lhs 
)

◆ __eq__() [7/9]

EqualityConstraints jormungandr.autodiff.VariableMatrix.__eq__ (   self,
Variable  rhs 
)

◆ __eq__() [8/9]

EqualityConstraints jormungandr.autodiff.VariableMatrix.__eq__ (   self,
VariableBlock  rhs 
)

◆ __eq__() [9/9]

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.

◆ __ge__() [1/9]

InequalityConstraints jormungandr.autodiff.VariableMatrix.__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.

◆ __ge__() [2/9]

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.

◆ __ge__() [3/9]

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.

◆ __ge__() [4/9]

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.

◆ __ge__() [5/9]

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.

◆ __ge__() [6/9]

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.

◆ __ge__() [7/9]

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.

◆ __ge__() [8/9]

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.

◆ __ge__() [9/9]

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.

◆ __getitem__() [1/2]

Variable jormungandr.autodiff.VariableMatrix.__getitem__ (   self,
int  row 
)
Returns a block pointing to the given row.

Parameter ``row``:
    The block row.

◆ __getitem__() [2/2]

object jormungandr.autodiff.VariableMatrix.__getitem__ (   self,
tuple  slices 
)
Returns a block pointing to the given row and column.

Parameter ``row``:
    The block row.

Parameter ``col``:
    The block column.

◆ __gt__() [1/9]

InequalityConstraints jormungandr.autodiff.VariableMatrix.__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.

◆ __gt__() [2/9]

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.

◆ __gt__() [3/9]

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.

◆ __gt__() [4/9]

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.

◆ __gt__() [5/9]

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.

◆ __gt__() [6/9]

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.

◆ __gt__() [7/9]

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.

◆ __gt__() [8/9]

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.

◆ __gt__() [9/9]

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.

◆ __iter__()

Iterator[Variable] jormungandr.autodiff.VariableMatrix.__iter__ (   self)

◆ __itruediv__() [1/2]

VariableMatrix jormungandr.autodiff.VariableMatrix.__itruediv__ (   self,
float  rhs 
)

◆ __itruediv__() [2/2]

VariableMatrix jormungandr.autodiff.VariableMatrix.__itruediv__ (   self,
Variable  rhs 
)
Compound matrix division-assignment operator (only enabled when rhs is
a scalar).

Parameter ``rhs``:
    Variable to divide.

◆ __le__() [1/9]

InequalityConstraints jormungandr.autodiff.VariableMatrix.__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.

◆ __le__() [2/9]

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.

◆ __le__() [3/9]

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.

◆ __le__() [4/9]

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.

◆ __le__() [5/9]

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.

◆ __le__() [6/9]

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.

◆ __le__() [7/9]

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.

◆ __le__() [8/9]

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.

◆ __le__() [9/9]

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.

◆ __len__()

int jormungandr.autodiff.VariableMatrix.__len__ (   self)
Returns number of rows in the matrix.

◆ __lt__() [1/9]

InequalityConstraints jormungandr.autodiff.VariableMatrix.__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.

◆ __lt__() [2/9]

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.

◆ __lt__() [3/9]

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.

◆ __lt__() [4/9]

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.

◆ __lt__() [5/9]

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.

◆ __lt__() [6/9]

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.

◆ __lt__() [7/9]

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.

◆ __lt__() [8/9]

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.

◆ __lt__() [9/9]

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.

◆ __matmul__() [1/2]

VariableMatrix jormungandr.autodiff.VariableMatrix.__matmul__ (   self,
VariableBlock  rhs 
)

◆ __matmul__() [2/2]

VariableMatrix jormungandr.autodiff.VariableMatrix.__matmul__ (   self,
VariableMatrix  rhs 
)

◆ __mul__() [1/4]

VariableMatrix jormungandr.autodiff.VariableMatrix.__mul__ (   self,
float  rhs 
)

◆ __mul__() [2/4]

VariableMatrix jormungandr.autodiff.VariableMatrix.__mul__ (   self,
Variable  rhs 
)

◆ __mul__() [3/4]

VariableMatrix jormungandr.autodiff.VariableMatrix.__mul__ (   self,
VariableBlock  rhs 
)

◆ __mul__() [4/4]

VariableMatrix jormungandr.autodiff.VariableMatrix.__mul__ (   self,
VariableMatrix  rhs 
)

◆ __neg__()

VariableMatrix jormungandr.autodiff.VariableMatrix.__neg__ (   self)

◆ __pow__()

Variable jormungandr.autodiff.VariableMatrix.__pow__ (   self,
int  power 
)

◆ __radd__() [1/3]

VariableMatrix jormungandr.autodiff.VariableMatrix.__radd__ (   self,
Annotated[ArrayLike, dict(dtype='float64', shape=(None, None))]  lhs 
)

◆ __radd__() [2/3]

VariableMatrix jormungandr.autodiff.VariableMatrix.__radd__ (   self,
float  lhs 
)

◆ __radd__() [3/3]

VariableMatrix jormungandr.autodiff.VariableMatrix.__radd__ (   self,
Variable  lhs 
)

◆ __rmul__() [1/4]

VariableMatrix jormungandr.autodiff.VariableMatrix.__rmul__ (   self,
float  lhs 
)

◆ __rmul__() [2/4]

VariableMatrix jormungandr.autodiff.VariableMatrix.__rmul__ (   self,
Variable  lhs 
)

◆ __rmul__() [3/4]

VariableMatrix jormungandr.autodiff.VariableMatrix.__rmul__ (   self,
VariableBlock  rhs 
)

◆ __rmul__() [4/4]

VariableMatrix jormungandr.autodiff.VariableMatrix.__rmul__ (   self,
VariableMatrix  lhs 
)

◆ __rsub__() [1/2]

VariableMatrix jormungandr.autodiff.VariableMatrix.__rsub__ (   self,
Annotated[ArrayLike, dict(dtype='float64', shape=(None, None))]  lhs 
)

◆ __rsub__() [2/2]

VariableMatrix jormungandr.autodiff.VariableMatrix.__rsub__ (   self,
Variable  lhs 
)

◆ __setitem__() [1/2]

Variable jormungandr.autodiff.VariableMatrix.__setitem__ (   self,
int  row,
Variable  value 
)

◆ __setitem__() [2/2]

None jormungandr.autodiff.VariableMatrix.__setitem__ (   self,
tuple  slices,
object  value 
)

◆ __sub__() [1/4]

VariableMatrix jormungandr.autodiff.VariableMatrix.__sub__ (   self,
Annotated[ArrayLike, dict(dtype='float64', shape=(None, None))]  rhs 
)

◆ __sub__() [2/4]

VariableMatrix jormungandr.autodiff.VariableMatrix.__sub__ (   self,
Variable  rhs 
)

◆ __sub__() [3/4]

VariableMatrix jormungandr.autodiff.VariableMatrix.__sub__ (   self,
VariableBlock  rhs 
)

◆ __sub__() [4/4]

VariableMatrix jormungandr.autodiff.VariableMatrix.__sub__ (   self,
VariableMatrix  rhs 
)

◆ __truediv__() [1/2]

VariableMatrix jormungandr.autodiff.VariableMatrix.__truediv__ (   self,
float  rhs 
)

◆ __truediv__() [2/2]

VariableMatrix jormungandr.autodiff.VariableMatrix.__truediv__ (   self,
Variable  rhs 
)

◆ col()

VariableBlock jormungandr.autodiff.VariableMatrix.col (   self,
int  col 
)
Returns a column slice of the variable matrix.

Parameter ``col``:
    The column to slice.

◆ cols()

int jormungandr.autodiff.VariableMatrix.cols (   self)
Returns number of columns in the matrix.

◆ cwise_transform()

VariableMatrix jormungandr.autodiff.VariableMatrix.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.

◆ ones()

VariableMatrix jormungandr.autodiff.VariableMatrix.ones ( int  rows,
int  cols 
)
static
Returns a variable matrix filled with ones.

Parameter ``rows``:
    The number of matrix rows.

Parameter ``cols``:
    The number of matrix columns.

◆ row()

VariableBlock jormungandr.autodiff.VariableMatrix.row (   self,
int  row 
)
Returns a row slice of the variable matrix.

Parameter ``row``:
    The row to slice.

◆ rows()

int jormungandr.autodiff.VariableMatrix.rows (   self)
Returns number of rows in the matrix.

◆ set_value() [1/4]

None jormungandr.autodiff.VariableMatrix.set_value (   self,
Annotated[ArrayLike, dict(dtype='float32', shape=(None, None))]  values 
)

◆ set_value() [2/4]

None jormungandr.autodiff.VariableMatrix.set_value (   self,
Annotated[ArrayLike, dict(dtype='float64', shape=(None, None))]  values 
)
Sets the VariableMatrix's internal values.

Parameter ``values``:
    Eigen matrix of values.

◆ set_value() [3/4]

None jormungandr.autodiff.VariableMatrix.set_value (   self,
Annotated[ArrayLike, dict(dtype='int32', shape=(None, None))]  values 
)

◆ set_value() [4/4]

None jormungandr.autodiff.VariableMatrix.set_value (   self,
Annotated[ArrayLike, dict(dtype='int64', shape=(None, None))]  values 
)

◆ shape()

tuple jormungandr.autodiff.VariableMatrix.shape (   self)

◆ T()

VariableMatrix jormungandr.autodiff.VariableMatrix.T (   self)
Returns the transpose of the variable matrix.

◆ value() [1/3]

Annotated[ArrayLike, dict(dtype='float64', shape=(None, None), order='F')] jormungandr.autodiff.VariableMatrix.value (   self)
Returns the contents of the variable matrix.

◆ value() [2/3]

float jormungandr.autodiff.VariableMatrix.value (   self,
int  index 
)
Returns a row of the variable column vector.

Parameter ``index``:
    The index of the element to return.

◆ value() [3/3]

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.

◆ zero()

VariableMatrix jormungandr.autodiff.VariableMatrix.zero ( int  rows,
int  cols 
)
static
Returns a variable matrix filled with zeroes.

Parameter ``rows``:
    The number of matrix rows.

Parameter ``cols``:
    The number of matrix columns.

The documentation for this class was generated from the following file: