DifferentiableMstExpression

inline class DifferentiableMstExpression<T : Number, A : NumericAlgebra<T>>(expr: MstExpression<T, A>) : DifferentiableExpression<T, MstExpression<T, A>>

Represents wrapper of MstExpression implementing DifferentiableExpression.

The principle of this API is converting the mst to an SFun, differentiating it with Kotlin∇, then converting SFun back to MST.

Parameters

T

the type of number.

A

the NumericAlgebra of T.

Constructors

DifferentiableMstExpression
Link copied to clipboard
fun <A : NumericAlgebra<T>> DifferentiableMstExpression(algebra: A, mst: MST)
DifferentiableMstExpression
Link copied to clipboard
fun <T : Number, A : NumericAlgebra<T>> DifferentiableMstExpression(expr: MstExpression<T, A>)
the type of number.

Functions

derivativeOrNull
Link copied to clipboard
open override fun derivativeOrNull(symbols: List<Symbol>): MstExpression<T, A>
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
invoke
Link copied to clipboard
open operator override fun invoke(arguments: Map<Symbol, T>): T
toString
Link copied to clipboard
open override fun toString(): String

Properties

algebra
Link copied to clipboard
val algebra: A
The MstExpression.algebra of expr.
expr
Link copied to clipboard
val expr: MstExpression<T, A>
the underlying MstExpression.
mst
Link copied to clipboard
val mst: MST
The MstExpression.mst of expr.