SimpleAutoDiffExtendedField

class SimpleAutoDiffExtendedField<T : Any, F : ExtendedField<T>>(context: F, bindings: Map<Symbol, T>) : SimpleAutoDiffField<T, F> , ExtendedField<AutoDiffValue<T>> , ScaleOperations<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(left: AutoDiffValue<T>, right: 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 override fun bindSymbol(value: String): AutoDiffValue<T>
The same as bindSymbolOrNull but throws an error if symbol could not be bound
bindSymbolOrNull
Link copied to clipboard
common
open fun bindSymbolOrNull(value: String): AutoDiffValue<T>?
Wraps a raw string to T object.
const
Link copied to clipboard
common
open override fun const(value: T): AutoDiffValue<T>
A constant expression that does not depend on arguments.
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 AutoDiffValue<T>.div(other: 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(left: AutoDiffValue<T>, right: AutoDiffValue<T>): AutoDiffValue<T>
Division of two elements.
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.
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 fun AutoDiffValue<T>.minus(other: AutoDiffValue<T>): AutoDiffValue<T>
Subtraction of two elements.
open operator fun Number.minus(other: AutoDiffValue<T>): AutoDiffValue<T>
Subtraction of number from element.
open operator fun AutoDiffValue<T>.minus(other: Number): AutoDiffValue<T>
Subtraction of element from number.
multiply
Link copied to clipboard
common
abstract fun multiply(left: AutoDiffValue<T>, right: AutoDiffValue<T>): AutoDiffValue<T>
Multiplies two elements.
number
Link copied to clipboard
common
open override fun number(value: Number): AutoDiffValue<T>
Wraps a number to T object.
plus
Link copied to clipboard
common
open operator fun AutoDiffValue<T>.plus(other: AutoDiffValue<T>): AutoDiffValue<T>
Addition of two elements.
open operator fun Number.plus(other: AutoDiffValue<T>): AutoDiffValue<T>
Addition of scalar and element.
open operator fun AutoDiffValue<T>.plus(other: Number): AutoDiffValue<T>
Addition of element and scalar.
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.
scale
Link copied to clipboard
common
open override fun scale(a: AutoDiffValue<T>, value: Double): AutoDiffValue<T>
Scaling an element by a scalar.
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(other: AutoDiffValue<T>): AutoDiffValue<T>
Multiplies this element by scalar.
open operator fun Number.times(other: 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.
unaryMinus
Link copied to clipboard
common
abstract 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 a 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 a 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>
The neutral element of multiplication
zero
Link copied to clipboard
common
abstract val zero: AutoDiffValue<T>
The neutral element of addition.

Sources

common source
Link copied to clipboard