Package space.kscience.kmath.symja

Types

Link copied to clipboard
class SymjaExpression<T : Number, A : NumericAlgebra<T>>(algebra: A, mst: MST, evaluator: ExprEvaluator) : SpecialDifferentiableExpression<T, SymjaExpression<T, A>>

Functions

Link copied to clipboard
fun MST.toIExpr(): IExpr

Matches the given MST instance to appropriate IExpr node, only standard operations and symbols (which are present in, say, MstExtendedField) are supported.

Link copied to clipboard
fun IExpr.toMst(evaluator: ExprEvaluator = DEFAULT_EVALUATOR): MST

Matches the given IExpr instance to appropriate MST node or evaluates it with evaluator.

Link copied to clipboard
fun <T : Number, A : NumericAlgebra<T>> MST.toSymjaExpression(algebra: A): SymjaExpression<T, A>

Wraps this MST into SymjaExpression in the context of algebra.