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

ones
Link copied to clipboard
fun DoubleTensorAlgebra.ones(vararg shape: Int): 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

Properties

tensorAlgebra
Link copied to clipboard