Package space.kscience.kmath.asm

Functions

Link copied to clipboard
inline fun <T : Any> MST.compile(algebra: Algebra<T>, vararg arguments: Pair<Symbol, T>): T
inline fun <T : Any> MST.compile(algebra: Algebra<T>, arguments: Map<Symbol, T>): T

Compile given MST to expression and evaluate it against arguments

fun MST.compile(algebra: DoubleField, vararg arguments: Pair<Symbol, Double>): Double
fun MST.compile(algebra: DoubleField, arguments: Map<Symbol, Double>): Double
fun MST.compile(algebra: IntRing, vararg arguments: Pair<Symbol, Int>): Int
fun MST.compile(algebra: IntRing, arguments: Map<Symbol, Int>): Int
fun MST.compile(algebra: LongRing, vararg arguments: Pair<Symbol, Long>): Long
fun MST.compile(algebra: LongRing, arguments: Map<Symbol, Long>): Long

Compile given MST to expression and evaluate it against arguments.

Link copied to clipboard
inline fun <T : Any> MST.compileToExpression(algebra: Algebra<T>): Expression<T>
fun MST.compileToExpression(algebra: DoubleField): DoubleExpression
fun MST.compileToExpression(algebra: IntRing): IntExpression
fun MST.compileToExpression(algebra: LongRing): LongExpression

Create a compiled expression with given MST and given algebra.