DualNum

@Serializable
class DualNum<Param : DualParameter>(values: DoubleArray)

Dual number to implement forward autodifferentiation.

Parameters

Param

\(x\)

Constructors

Link copied to clipboard
constructor(values: List<Double>)
constructor(values: DoubleArray)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun cos(): DualNum<Param>
Link copied to clipboard
operator fun div(d: DualNum<Param>): DualNum<Param>
operator fun div(c: Double): DualNum<Param>
Link copied to clipboard
fun drop(n: Int): DualNum<Param>
Link copied to clipboard
operator fun get(i: Int): Double
Link copied to clipboard
operator fun minus(d: DualNum<Param>): DualNum<Param>
operator fun minus(c: Double): DualNum<Param>
Link copied to clipboard
operator fun plus(d: DualNum<Param>): DualNum<Param>
operator fun plus(c: Double): DualNum<Param>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun sin(): DualNum<Param>
Link copied to clipboard
fun size(): Int
Link copied to clipboard
Link copied to clipboard
operator fun times(d: DualNum<Param>): DualNum<Param>
operator fun times(c: Vector2d): Vector2dDual<Param>
operator fun times(c: Double): DualNum<Param>
Link copied to clipboard
operator fun unaryMinus(): DualNum<Param>
Link copied to clipboard
fun value(): Double
Link copied to clipboard