LinearValue

Defined in module: wield.control.linear_values.linear_values.LinearValue

class LinearValue(LVtype, value)[source][github]

Bases: object

This object holds a scalar, diagonal, or dense matrix.

Scalars can be either unwrapped by numpy, or they have dimension () or (…) Matrices are stored by numpy arrays and have dimension (…,M,N) diagonals are stored by numpy arrays and have dimension (…,M) or (…,N)

__init__(LVtype, value)[source][github]

Takes the LVtype (if it’s a scalar, diagonal, or matrix). Also takes the actual matrix (built however it should be)

Methods

__init__(LVtype, value)

Takes the LVtype (if it's a scalar, diagonal, or matrix).

abs_sq()

matadd(other)

matinv()

matmul(other)

matmuladd(othermul, otheradd)

matsub(other)

matadd(other)[source][github]
matsub(other)[source][github]
matmul(other)[source][github]
matmuladd(othermul, otheradd)[source][github]
matinv()[source][github]
abs_sq()[source][github]