SimpleAutoDiffExpression

class SimpleAutoDiffExpression<T : Any, F : Field<T>>(field: F, function: SimpleAutoDiffField<T, F>.() -> AutoDiffValue<T>) : FirstDerivativeExpression<T, Expression<T>>

A constructs that creates a derivative structure with required order on-demand

Constructors

SimpleAutoDiffExpression
Link copied to clipboard
common
fun <T : Any, F : Field<T>> SimpleAutoDiffExpression(field: F, function: SimpleAutoDiffField<T, F>.() -> AutoDiffValue<T>)

Functions

derivativeOrNull
Link copied to clipboard
common
override fun derivativeOrNull(symbols: List<Symbol>): Expression<T>?
Differentiates this expression by ordered collection of symbols.
open override fun derivativeOrNull(symbol: Symbol): Expression<T>
Returns first derivative of this expression by given symbol.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
invoke
Link copied to clipboard
common
open operator override fun invoke(arguments: Map<Symbol, T>): T
Calls this expression from arguments.
toString
Link copied to clipboard
common
open fun toString(): String

Properties

field
Link copied to clipboard
common
val field: F
function
Link copied to clipboard
common
val function: SimpleAutoDiffField<T, F>.() -> AutoDiffValue<T>