SimpleAutoDiffExpression

class SimpleAutoDiffExpression<T : Any, F : Field<T>>(field: F, function: SimpleAutoDiffField<T, F>.() -> AutoDiffValue<T>) : FirstDerivativeExpression<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.
invoke
Link copied to clipboard
common
open operator override fun invoke(arguments: Map<Symbol, T>): T
Calls this expression from arguments.

Properties

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

Sources

common source
Link copied to clipboard