Package space.kscience.kmath.kotlingrad

Types

KMathNumber
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.
KotlingradExpression
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∇.
KotlingradProcessor
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

toKotlingradExpression
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.
toMst
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.
fun <X : SFun<X>> SVar<X>.toMst(): Symbol
Maps SVar to Symbol directly.
toSConst
Link copied to clipboard
fun <X : SFun<X>> MST.Numeric.toSConst(): SConst<X>
Maps MST.Numeric to SConst directly.
toSFun
Link copied to clipboard
fun <X : SFun<X>> MST.toSFun(): SFun<X>
Maps MST objects to SFun.