Package space.kscience.kmath.kotlingrad

Types

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

Implements SConst by delegating its functionality to NumericAlgebra.

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

Represents MST based DifferentiableExpression relying on Kotlin∇.

Link copied to clipboard
class KotlingradProcessor<T : Number, A : NumericAlgebra<T>>(algebra: A) : AutoDiffProcessor<T, MST, MstExtendedField>

A diff processor using MST to Kotlingrad converter

Functions

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

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.