Package-level declarations

Types

Link copied to clipboard
class KMathNumber<T : Number, A : NumericAlgebra<T>>(val algebra: A, val value: T) : SConst<KMathNumber<T, A>>

Implements SConst by delegating its functionality to NumericAlgebra.

Link copied to clipboard
Link copied to clipboard

A diff processor using MST to Kotlingrad converter

Functions

Link copied to clipboard

Wraps this MST into KotlingradExpression in the context of algebra.

Link copied to clipboard
fun <X : SFun<X>> SConst<X>.toMst(): MST.Numeric

Maps SVar to MST.Numeric directly.

fun <X : SFun<X>> SFun<X>.toMst(): MST

Maps SFun objects to MST. Some unsupported operations like Derivative are bound and converted then. Power operation is limited to constant right-hand side arguments.

fun <X : SFun<X>> SVar<X>.toMst(): Symbol

Maps SVar to Symbol directly.

Link copied to clipboard
fun <X : SFun<X>> MST.Numeric.toSConst(): SConst<X>

Maps MST.Numeric to SConst directly.

Link copied to clipboard
fun <X : SFun<X>> MST.toSFun(): SFun<X>

Maps MST objects to SFun. Unsupported operations throw IllegalStateException.