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

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

Functions

Link copied to clipboard
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.

Link copied to clipboard
open operator override fun invoke(arguments: Map<Symbol, T>): T

Calls this expression from arguments.

Properties

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

Sources

Link copied to clipboard