Package space.kscience.kmath.wasm

Functions

compile
Link copied to clipboard
js
fun <ERROR CLASS>.compile(algebra: <ERROR CLASS>, vararg arguments: Pair<<ERROR CLASS>, Double>): Double
Compile given MST to expression and evaluate it against arguments.
fun <ERROR CLASS>.compile(algebra: <ERROR CLASS>, arguments: Map<<ERROR CLASS>, Double>): Double
Compile given MST to expression and evaluate it against arguments.
fun <ERROR CLASS>.compile(algebra: <ERROR CLASS>, vararg arguments: Pair<<ERROR CLASS>, Int>): Int
Compile given MST to expression and evaluate it against arguments.
fun <ERROR CLASS>.compile(algebra: <ERROR CLASS>, arguments: Map<<ERROR CLASS>, Int>): Int
Compile given MST to expression and evaluate it against arguments.
compileToExpression
Link copied to clipboard
js
fun <ERROR CLASS>.compileToExpression(algebra: <ERROR CLASS>): <ERROR CLASS><Double>
Create a compiled expression with given MST and given algebra.
fun <ERROR CLASS>.compileToExpression(algebra: <ERROR CLASS>): <ERROR CLASS><Int>
Create a compiled expression with given MST and given algebra.
expression
Link copied to clipboard
js
fun <ERROR CLASS>.expression(mst: <ERROR CLASS>): <ERROR CLASS><Double>
Compiles an MST to WASM in the context of reals.
fun <ERROR CLASS>.expression(mst: <ERROR CLASS>): <ERROR CLASS><Int>
Compiles an MST to WASM in the context of integers.