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

KMathNumber
Link copied to clipboard
fun <T : Number, A : NumericAlgebra<T>> KMathNumber(algebra: A, value: T)
The type of number.

Functions

apply
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>>
asString
Link copied to clipboard
open fun asString(): String
bind
Link copied to clipboard
open fun List<Pair<Fun<KMathNumber<T, A>>, Any>>.bind(): Bindings<KMathNumber<T, A>>
cos
Link copied to clipboard
open override fun cos(): SConst<KMathNumber<T, A>>
d
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>
div
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>>
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
exp
Link copied to clipboard
fun exp(): SFun<KMathNumber<T, A>>
grad
Link copied to clipboard
open fun grad(): Map<SVar<KMathNumber<T, A>>, SFun<KMathNumber<T, A>>>
hashCode
Link copied to clipboard
open override fun hashCode(): Int
invoke
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: Pair<Fun<KMathNumber<T, A>>, Any>): SFun<KMathNumber<T, A>>
isConstant
Link copied to clipboard
open fun isConstant(): Boolean
ln
Link copied to clipboard
fun ln(): SFun<KMathNumber<T, A>>
log
Link copied to clipboard
open override fun log(base: SFun<KMathNumber<T, A>>): SFun<KMathNumber<T, A>>
minus
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>>
plus
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>>
pow
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>>
sin
Link copied to clipboard
open override fun sin(): SConst<KMathNumber<T, A>>
sqrt
Link copied to clipboard
open override fun sqrt(): SConst<KMathNumber<T, A>>
tan
Link copied to clipboard
open override fun tan(): SConst<KMathNumber<T, A>>
times
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>>
toGate
Link copied to clipboard
open fun toGate(): Gate
toGraph
Link copied to clipboard
open fun toGraph(): ComputationGraph
toString
Link copied to clipboard
open override fun toString(): String
Returns a string representation of the value.
unaryMinus
Link copied to clipboard
open operator override fun unaryMinus(): SConst<KMathNumber<T, A>>
unaryPlus
Link copied to clipboard
open operator override fun unaryPlus(): SFun<KMathNumber<T, A>>
wrap
Link copied to clipboard
open override fun wrap(number: Number): KMathNumber<T, A>
wrapOrError
Link copied to clipboard
open fun wrapOrError(any: Any): Fun<KMathNumber<T, A>>

Properties

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

Sources

jvm source
Link copied to clipboard