SimpleAutoDiffExtendedField

class SimpleAutoDiffExtendedField<T : Any, F : ExtendedField<T>>(context: F, bindings: Map<Symbol, T>) : SimpleAutoDiffField<T, F> , ExtendedField<AutoDiffValue<T>>

Functions

acos
Link copied to clipboard
common
open override fun acos(arg: AutoDiffValue<T>): AutoDiffValue<T>
Computes the inverse cosine of arg.
acosh
Link copied to clipboard
common
open override fun acosh(arg: AutoDiffValue<T>): AutoDiffValue<T>
Computes the inverse hyperbolic cosine of arg.
add
Link copied to clipboard
common
abstract fun add(a: AutoDiffValue<T>, b: AutoDiffValue<T>): AutoDiffValue<T>
Addition of two elements.
asin
Link copied to clipboard
common
open override fun asin(arg: AutoDiffValue<T>): AutoDiffValue<T>
Computes the inverse sine of arg.
asinh
Link copied to clipboard
common
open override fun asinh(arg: AutoDiffValue<T>): AutoDiffValue<T>
Computes the inverse hyperbolic sine of arg.
atan
Link copied to clipboard
common
open override fun atan(arg: AutoDiffValue<T>): AutoDiffValue<T>
Computes the inverse tangent of arg.
atanh
Link copied to clipboard
common
open override fun atanh(arg: AutoDiffValue<T>): AutoDiffValue<T>
Computes the inverse hyperbolic tangent of arg.
binaryOperation
Link copied to clipboard
common
open fun binaryOperation(operation: String, left: AutoDiffValue<T>, right: AutoDiffValue<T>): AutoDiffValue<T>
Dynamically invokes a binary operation with the certain name.
binaryOperationFunction
Link copied to clipboard
common
open override fun binaryOperationFunction(operation: String): (left: AutoDiffValue<T>, right: AutoDiffValue<T>) -> AutoDiffValue<T>
Dynamically dispatches a binary operation with the certain name.
bindSymbol
Link copied to clipboard
common
open fun bindSymbol(value: String): AutoDiffValue<T>
Wraps a raw string to T object.
bindSymbolOrNull
Link copied to clipboard
common
open override fun bindSymbolOrNull(symbol: Symbol): AutoDiffValue<T>?
Bind a given Symbol to this context variable and produce context-specific object.
const
Link copied to clipboard
common
open override fun const(value: T): AutoDiffValue<T>
A constant expression which does not depend on arguments
inline fun const(block: F.() -> T): AutoDiffValue<T>
cos
Link copied to clipboard
common
open override fun cos(arg: AutoDiffValue<T>): AutoDiffValue<T>
Computes the cosine of arg.
cosh
Link copied to clipboard
common
open override fun cosh(arg: AutoDiffValue<T>): AutoDiffValue<T>
Computes the hyperbolic cosine of arg.
derive
Link copied to clipboard
common
fun <R> derive(value: R, block: F.(R) -> Unit): R
Performs update of derivative after the rest of the formula in the back-pass.
div
Link copied to clipboard
common
open operator fun Number.div(b: AutoDiffValue<T>): AutoDiffValue<T>
Division of element by scalar.
open operator fun AutoDiffValue<T>.div(b: AutoDiffValue<T>): AutoDiffValue<T>
Division of two elements.
open operator fun AutoDiffValue<T>.div(k: Number): AutoDiffValue<T>
Division of this element by scalar.
divide
Link copied to clipboard
common
abstract fun divide(a: AutoDiffValue<T>, b: AutoDiffValue<T>): AutoDiffValue<T>
Division of two elements.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
exp
Link copied to clipboard
common
open override fun exp(arg: AutoDiffValue<T>): AutoDiffValue<T>
Computes Euler's number e raised to the power of the value arg.
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
leftSideNumberOperation
Link copied to clipboard
common
open fun leftSideNumberOperation(operation: String, left: Number, right: AutoDiffValue<T>): AutoDiffValue<T>
Dynamically invokes a binary operation with the certain name with numeric first argument.
leftSideNumberOperationFunction
Link copied to clipboard
common
open fun leftSideNumberOperationFunction(operation: String): (left: Number, right: AutoDiffValue<T>) -> AutoDiffValue<T>
Dynamically dispatches a binary operation with the certain name with numeric first argument.
ln
Link copied to clipboard
common
open override fun ln(arg: AutoDiffValue<T>): AutoDiffValue<T>
Computes the natural logarithm (base e) of the value arg.
minus
Link copied to clipboard
common
open operator override fun Number.minus(b: AutoDiffValue<T>): AutoDiffValue<T>
Subtraction of number from element.
open operator override fun AutoDiffValue<T>.minus(b: Number): AutoDiffValue<T>
Subtraction of element from number.
open operator fun AutoDiffValue<T>.minus(b: AutoDiffValue<T>): AutoDiffValue<T>
Subtraction of two elements.
multiply
Link copied to clipboard
common
abstract fun multiply(a: AutoDiffValue<T>, b: AutoDiffValue<T>): AutoDiffValue<T>
Multiplies two elements.
abstract fun multiply(a: AutoDiffValue<T>, k: Number): AutoDiffValue<T>
Multiplication of element by scalar.
number
Link copied to clipboard
common
abstract fun number(value: Number): AutoDiffValue<T>
Wraps a number to T object.
plus
Link copied to clipboard
common
open operator override fun Number.plus(b: AutoDiffValue<T>): AutoDiffValue<T>
Addition of scalar and element.
open operator override fun AutoDiffValue<T>.plus(b: Number): AutoDiffValue<T>
Addition of element and scalar.
open operator fun AutoDiffValue<T>.plus(b: AutoDiffValue<T>): AutoDiffValue<T>
Addition of two elements.
pow
Link copied to clipboard
common
open infix fun AutoDiffValue<T>.pow(pow: Number): AutoDiffValue<T>
Raises this value to the power pow.
fun pow(x: AutoDiffValue<T>, y: AutoDiffValue<T>): AutoDiffValue<T>
power
Link copied to clipboard
common
open override fun power(arg: AutoDiffValue<T>, pow: Number): AutoDiffValue<T>
Raises arg to the power pow.
rightSideNumberOperation
Link copied to clipboard
common
open fun rightSideNumberOperation(operation: String, left: AutoDiffValue<T>, right: Number): AutoDiffValue<T>
Dynamically invokes a binary operation with the certain name with numeric second argument.
rightSideNumberOperationFunction
Link copied to clipboard
common
open override fun rightSideNumberOperationFunction(operation: String): (left: AutoDiffValue<T>, right: Number) -> AutoDiffValue<T>
Dynamically dispatches a binary operation with the certain name with numeric first argument.
sin
Link copied to clipboard
common
open override fun sin(arg: AutoDiffValue<T>): AutoDiffValue<T>
Computes the sine of arg.
sinh
Link copied to clipboard
common
open override fun sinh(arg: AutoDiffValue<T>): AutoDiffValue<T>
Computes the hyperbolic sine of arg.
sqr
Link copied to clipboard
common
fun sqr(x: AutoDiffValue<T>): AutoDiffValue<T>
sqrt
Link copied to clipboard
common
open override fun sqrt(arg: AutoDiffValue<T>): AutoDiffValue<T>
Computes the square root of the value arg.
tan
Link copied to clipboard
common
open override fun tan(arg: AutoDiffValue<T>): AutoDiffValue<T>
Computes the tangent of arg.
tanh
Link copied to clipboard
common
open override fun tanh(arg: AutoDiffValue<T>): AutoDiffValue<T>
Computes the hyperbolic tangent of arg.
times
Link copied to clipboard
common
open operator fun AutoDiffValue<T>.times(b: AutoDiffValue<T>): AutoDiffValue<T>
Multiplies this element by scalar.
open operator fun Number.times(b: AutoDiffValue<T>): AutoDiffValue<T>
Multiplication of this number by element.
open operator fun AutoDiffValue<T>.times(k: Number): AutoDiffValue<T>
Multiplication of this element by a scalar.
toString
Link copied to clipboard
common
open fun toString(): String
unaryMinus
Link copied to clipboard
common
open operator fun AutoDiffValue<T>.unaryMinus(): AutoDiffValue<T>
The negation of this element.
unaryOperation
Link copied to clipboard
common
open fun unaryOperation(operation: String, arg: AutoDiffValue<T>): AutoDiffValue<T>
Dynamically invokes an unary operation with the certain name.
unaryOperationFunction
Link copied to clipboard
common
open override fun unaryOperationFunction(operation: String): (arg: AutoDiffValue<T>) -> AutoDiffValue<T>
Dynamically dispatches an unary operation with the certain name.
unaryPlus
Link copied to clipboard
common
open operator fun AutoDiffValue<T>.unaryPlus(): AutoDiffValue<T>
Returns this value.

Properties

context
Link copied to clipboard
common
val context: F
d
Link copied to clipboard
common
var AutoDiffValue<T>.d: T
A variable accessing inner state of derivatives.
one
Link copied to clipboard
common
abstract val one: AutoDiffValue<T>
neutral operation for multiplication
zero
Link copied to clipboard
common
abstract val zero: AutoDiffValue<T>
The neutral element of addition.