Sleipnir Python API
|
Classes | |
class | ExpressionType |
class | Gradient |
class | Hessian |
class | Jacobian |
class | Variable |
class | VariableBlock |
class | VariableMatrix |
Variable jormungandr.autodiff.abs | ( | float | x | ) |
std::abs() for Variables. Parameter ``x``: The argument.
Variable jormungandr.autodiff.acos | ( | float | x | ) |
std::acos() for Variables. Parameter ``x``: The argument.
Variable jormungandr.autodiff.asin | ( | float | x | ) |
std::asin() for Variables. Parameter ``x``: The argument.
Variable jormungandr.autodiff.atan | ( | float | x | ) |
std::atan() for Variables. Parameter ``x``: The argument.
std::atan2() for Variables. Parameter ``y``: The y argument. Parameter ``x``: The x argument.
VariableMatrix jormungandr.autodiff.block | ( | Sequence[Sequence[VariableMatrix]] | list | ) |
Assemble a VariableMatrix from a nested list of blocks. Each row's blocks must have the same height, and the assembled block rows must have the same width. For example, for the block matrix [[A, B], [C]] to be constructible, the number of rows in A and B must match, and the number of columns in [A, B] and [C] must match. Parameter ``list``: The nested list of blocks.
Variable jormungandr.autodiff.cos | ( | float | x | ) |
std::cos() for Variables. Parameter ``x``: The argument.
Variable jormungandr.autodiff.cosh | ( | float | x | ) |
std::cosh() for Variables. Parameter ``x``: The argument.
VariableMatrix jormungandr.autodiff.cwise_reduce | ( | VariableMatrix | lhs, |
VariableMatrix | rhs, | ||
Callable[[Variable, Variable], Variable] | func | ||
) |
Applies a coefficient-wise reduce operation to two matrices. Parameter ``lhs``: The left-hand side of the binary operator. Parameter ``rhs``: The right-hand side of the binary operator. Parameter ``binary_op``: The binary operator to use for the reduce operation.
Variable jormungandr.autodiff.erf | ( | float | x | ) |
std::erf() for Variables. Parameter ``x``: The argument.
Variable jormungandr.autodiff.exp | ( | float | x | ) |
std::exp() for Variables. Parameter ``x``: The argument.
std::hypot() for Variables. Parameter ``x``: The x argument. Parameter ``y``: The y argument.
std::hypot() for Variables. Parameter ``x``: The x argument. Parameter ``y``: The y argument.
std::hypot() for Variables. Parameter ``x``: The x argument. Parameter ``y``: The y argument.
std::hypot() for Variables. Parameter ``x``: The x argument. Parameter ``y``: The y argument. Parameter ``z``: The z argument.
Variable jormungandr.autodiff.log | ( | float | x | ) |
std::log() for Variables. Parameter ``x``: The argument.
Variable jormungandr.autodiff.log10 | ( | float | x | ) |
std::log10() for Variables. Parameter ``x``: The argument.
std::pow() for Variables. Parameter ``base``: The base. Parameter ``power``: The power.
Variable jormungandr.autodiff.sign | ( | float | x | ) |
sign() for Variables. Parameter ``x``: The argument.
Variable jormungandr.autodiff.sin | ( | float | x | ) |
std::sin() for Variables. Parameter ``x``: The argument.
Variable jormungandr.autodiff.sinh | ( | float | x | ) |
std::sinh() for Variables. Parameter ``x``: The argument.
VariableMatrix jormungandr.autodiff.solve | ( | VariableMatrix | A, |
VariableMatrix | B | ||
) |
Solves the VariableMatrix equation AX = B for X. Parameter ``A``: The left-hand side. Parameter ``B``: The right-hand side. Returns: The solution X.
jormungandr.autodiff.spy | ( | scipy.sparse.csc_matrix | mat | ) |
Plot the sparsity pattern of a sparse matrix. Green points represent positive values and red points represent negative values. Parameter ``mat``: The sparse matrix.
Variable jormungandr.autodiff.sqrt | ( | float | x | ) |
std::sqrt() for Variables. Parameter ``x``: The argument.
Variable jormungandr.autodiff.tan | ( | float | x | ) |
std::tan() for Variables. Parameter ``x``: The argument.
Variable jormungandr.autodiff.tanh | ( | float | x | ) |
std::tanh() for Variables. Parameter ``x``: The argument.