KMathNumber

class KMathNumber<T : Number, A : NumericAlgebra<T>>(algebra: A, value: T) : SConst<KMathNumber<T, A>>

Implements SConst by delegating its functionality to NumericAlgebra.

Parameters

T

The type of number.

A

The NumericAlgebra over T.

Constructors

Link copied to clipboard
fun <T : Number, A : NumericAlgebra<T>> KMathNumber(algebra: A, value: T)

Functions

Link copied to clipboard
fun apply(op: Op): (SFun<KMathNumber<T, A>>) -> SFun<KMathNumber<T, A>>
fun apply(vararg xs: Fun<KMathNumber<T, A>>): SFun<KMathNumber<T, A>>
Link copied to clipboard
open fun asString(): String
Link copied to clipboard
open fun List<FunToAny<KMathNumber<T, A>>>.bind(): Bindings<KMathNumber<T, A>>
Link copied to clipboard
open override fun cos(): SConst<KMathNumber<T, A>>
Link copied to clipboard
open fun <R : D1, C : D1> d(mVar: MVar<KMathNumber<T, A>, R, C>): MFun<KMathNumber<T, A>, R, C>
open fun d(v1: SVar<KMathNumber<T, A>>): SFun<KMathNumber<T, A>>
open fun <L : D1> d(vVar: VVar<KMathNumber<T, A>, L>): VFun<KMathNumber<T, A>, L>
Link copied to clipboard
open operator override fun div(divisor: SFun<KMathNumber<T, A>>): SFun<KMathNumber<T, A>>
operator fun div(divisor: Number): SFun<KMathNumber<T, A>>
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun exp(): SFun<KMathNumber<T, A>>
Link copied to clipboard
open fun grad(): Map<SVar<KMathNumber<T, A>>, SFun<KMathNumber<T, A>>>
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open operator override fun invoke(): SFun<KMathNumber<T, A>>
open operator override fun invoke(newBindings: Bindings<KMathNumber<T, A>>): SFun<KMathNumber<T, A>>
open operator override fun invoke(vararg funs: Fun<KMathNumber<T, A>>): SFun<KMathNumber<T, A>>
open operator override fun invoke(vararg numbers: Number): SFun<KMathNumber<T, A>>
open operator override fun invoke(vararg ps: FunToAny<KMathNumber<T, A>>): SFun<KMathNumber<T, A>>
Link copied to clipboard
open fun isConstant(): Boolean
Link copied to clipboard
fun ln(): SFun<KMathNumber<T, A>>
Link copied to clipboard
open override fun log(base: SFun<KMathNumber<T, A>>): SFun<KMathNumber<T, A>>
Link copied to clipboard
open operator fun minus(subtrahend: SFun<KMathNumber<T, A>>): SFun<KMathNumber<T, A>>
operator fun minus(subtrahend: Number): SFun<KMathNumber<T, A>>
Link copied to clipboard
open operator override fun plus(addend: SFun<KMathNumber<T, A>>): SFun<KMathNumber<T, A>>
operator fun plus(addend: Number): SFun<KMathNumber<T, A>>
Link copied to clipboard
open infix override fun pow(exponent: SFun<KMathNumber<T, A>>): SFun<KMathNumber<T, A>>
infix fun pow(exp: Number): SFun<KMathNumber<T, A>>
Link copied to clipboard
open override fun sin(): SConst<KMathNumber<T, A>>
Link copied to clipboard
open override fun sqrt(): SConst<KMathNumber<T, A>>
Link copied to clipboard
open override fun tan(): SConst<KMathNumber<T, A>>
Link copied to clipboard
open operator override fun <R : D1, C : D1> times(multiplicand: MFun<KMathNumber<T, A>, R, C>): MFun<KMathNumber<T, A>, R, C>
open operator override fun times(multiplicand: SFun<KMathNumber<T, A>>): SFun<KMathNumber<T, A>>
open operator override fun <E : D1> times(multiplicand: VFun<KMathNumber<T, A>, E>): VFun<KMathNumber<T, A>, E>
operator fun times(multiplicand: Number): SFun<KMathNumber<T, A>>
Link copied to clipboard
open fun toGate(): Gate
Link copied to clipboard
open fun toGraph(): ComputationGraph
Link copied to clipboard
open override fun toString(): String

Returns a string representation of the value.

Link copied to clipboard
open operator override fun unaryMinus(): SConst<KMathNumber<T, A>>
Link copied to clipboard
open operator override fun unaryPlus(): SFun<KMathNumber<T, A>>
Link copied to clipboard
open override fun wrap(number: Number): KMathNumber<T, A>
Link copied to clipboard
open fun wrapOrError(any: Any): Fun<KMathNumber<T, A>>

Properties

Link copied to clipboard
val algebra: A

The algebra.

Link copied to clipboard
open val bindings: Bindings<KMathNumber<T, A>>
Link copied to clipboard
open val doubleValue: Double
Link copied to clipboard
val E: Special<KMathNumber<T, A>>
Link copied to clipboard
open override val inputs: Array<out Fun<KMathNumber<T, A>>>
Link copied to clipboard
val ONE: Special<KMathNumber<T, A>>
Link copied to clipboard
open override val op: Op
Link copied to clipboard
val TWO: Special<KMathNumber<T, A>>
Link copied to clipboard
open override val value: T

The value of this number.

Link copied to clipboard
val ZERO: Special<KMathNumber<T, A>>

Sources

Link copied to clipboard