Package space.kscience.kmath.tensors.core

Types

BroadcastDoubleTensorAlgebra
Link copied to clipboard
object BroadcastDoubleTensorAlgebra : DoubleTensorAlgebra
Basic linear algebra operations implemented with broadcasting.
BufferedTensor
Link copied to clipboard
open class BufferedTensor<T> : MutableStructureND<T>
Represents Tensor over a MutableBuffer intended to be used through DoubleTensor and IntTensor
DoubleTensor
Link copied to clipboard
class DoubleTensor : BufferedTensor<Double>
Default BufferedTensor implementation for Double values
DoubleTensorAlgebra
Link copied to clipboard
Implementation of basic operations over double tensors and basic algebra operations on them.
IntTensor
Link copied to clipboard
class IntTensor : BufferedTensor<Int>
Default BufferedTensor implementation for Int values

Functions

one
Link copied to clipboard
@JvmName(name = varArgOne)
fun DoubleTensorAlgebra.one(vararg shape: Int): DoubleTensor
fun DoubleTensorAlgebra.one(shape: Shape): DoubleTensor
toDoubleArray
Link copied to clipboard
fun DoubleTensor.toDoubleArray(): DoubleArray
Returns DoubleArray of tensor elements
toDoubleTensor
Link copied to clipboard
fun Tensor<Double>.toDoubleTensor(): DoubleTensor
toIntArray
Link copied to clipboard
fun IntTensor.toIntArray(): IntArray
Returns IntArray of tensor elements
toIntTensor
Link copied to clipboard
fun Tensor<Int>.toIntTensor(): IntTensor
Casts Tensor of Int to IntTensor
withBroadcast
Link copied to clipboard
fun <R> DoubleTensorAlgebra.withBroadcast(block: BroadcastDoubleTensorAlgebra.() -> R): R
Compute a value using broadcast double tensor algebra
zero
Link copied to clipboard
@JvmName(name = varArgZero)
fun DoubleTensorAlgebra.zero(vararg shape: Int): DoubleTensor
fun DoubleTensorAlgebra.zero(shape: Shape): DoubleTensor

Properties

tensorAlgebra
Link copied to clipboard