DoubleFieldND

class DoubleFieldND(shape: Shape) : DoubleFieldOpsND, FieldND<Double, DoubleField> , NumbersAddOps<StructureND<Double>>

Functions

acos
Link copied to clipboard
common
open override fun acos(arg: StructureND<Double>): DoubleBufferND
Computes the inverse cosine of arg.
acosh
Link copied to clipboard
common
open override fun acosh(arg: StructureND<Double>): DoubleBufferND
Computes the inverse hyperbolic cosine of arg.
add
Link copied to clipboard
common
open override fun add(left: StructureND<Double>, right: StructureND<Double>): DoubleBufferND
Addition of two elements.
asin
Link copied to clipboard
common
open override fun asin(arg: StructureND<Double>): DoubleBufferND
Computes the inverse sine of arg.
asinh
Link copied to clipboard
common
open override fun asinh(arg: StructureND<Double>): DoubleBufferND
Computes the inverse hyperbolic sine of arg.
atan
Link copied to clipboard
common
open override fun atan(arg: StructureND<Double>): DoubleBufferND
Computes the inverse tangent of arg.
atanh
Link copied to clipboard
common
open override fun atanh(arg: StructureND<Double>): DoubleBufferND
Computes the inverse hyperbolic tangent of arg.
binaryOperation
Link copied to clipboard
common
open fun binaryOperation(operation: String, left: StructureND<Double>, right: StructureND<Double>): StructureND<Double>
Dynamically invokes a binary operation with the certain name.
binaryOperationFunction
Link copied to clipboard
common
open override fun binaryOperationFunction(operation: String): (left: StructureND<Double>, right: StructureND<Double>) -> StructureND<Double>
Dynamically dispatches a binary operation with the certain name.
bindSymbol
Link copied to clipboard
common
open fun bindSymbol(value: String): StructureND<Double>
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): StructureND<Double>?
Wraps a raw string to T object.
cos
Link copied to clipboard
common
open override fun cos(arg: StructureND<Double>): DoubleBufferND
Computes the cosine of arg.
cosh
Link copied to clipboard
common
open override fun cosh(arg: StructureND<Double>): DoubleBufferND
Computes the hyperbolic cosine of arg.
div
Link copied to clipboard
common
open operator override fun Double.div(arg: StructureND<Double>): DoubleBufferND
Divides an element by an ND structure of it.
open operator override fun StructureND<Double>.div(arg: Double): DoubleBufferND
Divides an ND structure by an element of it.
open operator override fun StructureND<Double>.div(k: Number): DoubleBufferND
Division of this element by scalar.
open operator override fun StructureND<Double>.div(other: StructureND<Double>): DoubleBufferND
Division of two elements.
divide
Link copied to clipboard
common
open override fun divide(left: StructureND<Double>, right: StructureND<Double>): DoubleBufferND
Element-wise division.
exp
Link copied to clipboard
common
open override fun exp(arg: StructureND<Double>): DoubleBufferND
Computes Euler's number e raised to the power of the value arg.
getFeature
Link copied to clipboard
common
open fun <F : StructureFeature> getFeature(structure: StructureND<Double>, type: KClass<out F>): F?
Get a feature of the structure in this scope.
invoke
Link copied to clipboard
common
open operator fun (Double) -> Double.invoke(structure: StructureND<Double>): StructureND<Double>
Element-wise invocation of function working on T on a StructureND.
leftSideNumberOperation
Link copied to clipboard
common
open fun leftSideNumberOperation(operation: String, left: Number, right: StructureND<Double>): StructureND<Double>
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: StructureND<Double>) -> StructureND<Double>
Dynamically dispatches a binary operation with the certain name with numeric first argument.
ln
Link copied to clipboard
common
open override fun ln(arg: StructureND<Double>): DoubleBufferND
Computes the natural logarithm (base e) of the value arg.
map
Link copied to clipboard
common
open override fun StructureND<Double>.map(transform: DoubleField.(Double) -> Double): BufferND<Double>
Maps elements from one structure to another one by applying transform to them.
mapIndexed
Link copied to clipboard
common
abstract fun StructureND<Double>.mapIndexed(transform: DoubleField.(index: IntArray, Double) -> Double): StructureND<Double>
Maps elements from one structure to another one by applying transform to them alongside with their indices.
minus
Link copied to clipboard
common
open operator override fun Double.minus(arg: StructureND<Double>): StructureND<Double>
Subtracts an ND structure from an element of it.
open operator override fun StructureND<Double>.minus(arg: Double): StructureND<Double>
Subtracts an element from ND structure of it.
open operator override fun StructureND<Double>.minus(other: StructureND<Double>): DoubleBufferND
Subtraction of two elements.
open operator fun Number.minus(other: StructureND<Double>): StructureND<Double>
Subtraction of number from element.
open operator fun StructureND<Double>.minus(other: Number): StructureND<Double>
Subtraction of element from number.
multiply
Link copied to clipboard
common
open override fun multiply(left: StructureND<Double>, right: StructureND<Double>): DoubleBufferND
Multiplies two elements.
number
Link copied to clipboard
common
open override fun number(value: Number): DoubleBufferND
Wraps a number to T object.
plus
Link copied to clipboard
common
open operator override fun Double.plus(arg: StructureND<Double>): StructureND<Double>
Adds an element to ND structure of it.
open operator override fun StructureND<Double>.plus(arg: Double): DoubleBufferND
Adds an ND structure to an element of it.
open operator override fun StructureND<Double>.plus(other: StructureND<Double>): DoubleBufferND
Addition of two elements.
open operator fun Number.plus(other: StructureND<Double>): StructureND<Double>
Addition of scalar and element.
open operator fun StructureND<Double>.plus(other: Number): StructureND<Double>
Addition of element and scalar.
pow
Link copied to clipboard
common
open infix fun StructureND<Double>.pow(pow: Number): StructureND<Double>
Raises this value to the power pow.
power
Link copied to clipboard
common
open override fun power(arg: StructureND<Double>, pow: Number): DoubleBufferND
Raises arg to the power pow.
rightSideNumberOperation
Link copied to clipboard
common
open fun rightSideNumberOperation(operation: String, left: StructureND<Double>, right: Number): StructureND<Double>
Dynamically invokes a binary operation with the certain name with numeric second argument.
rightSideNumberOperationFunction
Link copied to clipboard
common
open fun rightSideNumberOperationFunction(operation: String): (left: StructureND<Double>, right: Number) -> StructureND<Double>
Dynamically dispatches a binary operation with the certain name with numeric first argument.
scale
Link copied to clipboard
common
open override fun scale(a: StructureND<Double>, value: Double): DoubleBufferND
Scaling an element by a scalar.
sin
Link copied to clipboard
common
open override fun sin(arg: StructureND<Double>): DoubleBufferND
Computes the sine of arg.
sinh
Link copied to clipboard
common
open override fun sinh(arg: StructureND<Double>): DoubleBufferND
Computes the hyperbolic sine of arg.
sqrt
Link copied to clipboard
common
open fun sqrt(arg: StructureND<Double>): StructureND<Double>
Computes the square root of the value arg.
structureND
Link copied to clipboard
common
open override fun structureND(shape: Shape, initializer: DoubleField.(IntArray) -> Double): DoubleBufferND
Produces a new StructureND using given initializer function.
tan
Link copied to clipboard
common
open override fun tan(arg: StructureND<Double>): DoubleBufferND
Computes the tangent of arg.
tanh
Link copied to clipboard
common
open override fun tanh(arg: StructureND<Double>): DoubleBufferND
Computes the hyperbolic tangent of arg.
times
Link copied to clipboard
common
open operator override fun Number.times(other: StructureND<Double>): DoubleBufferND
Multiplication of this number by element.
open operator override fun StructureND<Double>.times(k: Number): DoubleBufferND
Multiplication of this element by a scalar.
open operator override fun StructureND<Double>.times(other: StructureND<Double>): DoubleBufferND
Multiplies this element by scalar.
open operator fun Double.times(arg: StructureND<Double>): StructureND<Double>
Multiplies an element by a ND structure of it.
open operator fun StructureND<Double>.times(arg: Double): StructureND<Double>
Multiplies an ND structure by an element of it.
toBufferND
Link copied to clipboard
common
open override fun StructureND<Double>.toBufferND(): DoubleBufferND
unaryMinus
Link copied to clipboard
common
open operator override fun StructureND<Double>.unaryMinus(): DoubleBufferND
The negation of this element.
unaryOperation
Link copied to clipboard
common
open fun unaryOperation(operation: String, arg: StructureND<Double>): StructureND<Double>
Dynamically invokes a unary operation with the certain name.
unaryOperationFunction
Link copied to clipboard
common
open override fun unaryOperationFunction(operation: String): (arg: StructureND<Double>) -> StructureND<Double>
Dynamically dispatches a unary operation with the certain name.
unaryPlus
Link copied to clipboard
common
open operator override fun StructureND<Double>.unaryPlus(): DoubleBufferND
Returns this value.
zip
Link copied to clipboard
common
open override fun zip(left: StructureND<Double>, right: StructureND<Double>, transform: DoubleField.(Double, Double) -> Double): BufferND<Double>
Combines two structures into one.

Properties

bufferAlgebra
Link copied to clipboard
common
open override val bufferAlgebra: BufferAlgebra<Double, DoubleField>
elementAlgebra
Link copied to clipboard
common
abstract val elementAlgebra: DoubleField
The algebra over elements of ND structure.
indexerBuilder
Link copied to clipboard
common
open override val indexerBuilder: (IntArray) -> ShapeIndex
one
Link copied to clipboard
common
open override val one: StructureND<Double>
The neutral element of multiplication
shape
Link copied to clipboard
common
open override val shape: Shape
zero
Link copied to clipboard
common
abstract val zero: StructureND<Double>
The neutral element of addition.

Sources

common source
Link copied to clipboard