ImmutableMemoryView

interface ImmutableMemoryView<T> : Iterable<T>

View for storing data in a NDArray and working them in a uniform style.

Functions

Link copied to clipboard
abstract fun copyInto(    destination: MemoryView<T>,     destinationOffset: Int = 0,     startIndex: Int = 0,     endIndex: Int = size): MemoryView<T>
Link copied to clipboard
abstract fun copyOf(): ImmutableMemoryView<T>

Returns a new instance with a copied primitive array.

Link copied to clipboard
abstract operator fun get(index: Int): T

Returns the value at index.

Link copied to clipboard
abstract fun getByteArray(): ByteArray

Returns ByteArray if it is MemoryViewByteArray.

Link copied to clipboard
abstract fun getComplexDoubleArray(): ComplexDoubleArray
Link copied to clipboard
abstract fun getComplexFloatArray(): ComplexFloatArray
Link copied to clipboard
abstract fun getDoubleArray(): DoubleArray

Returns DoubleArray.

Link copied to clipboard
abstract fun getFloatArray(): FloatArray
Link copied to clipboard
abstract fun getIntArray(): IntArray

Returns IntArray if it is MemoryViewIntArray.

Link copied to clipboard
abstract fun getLongArray(): LongArray

Returns LongArray if it is MemoryViewLongArray.

Link copied to clipboard
abstract fun getShortArray(): ShortArray
Link copied to clipboard
abstract operator override fun iterator(): Iterator<T>

data iterator

Properties

Link copied to clipboard
abstract val data: Any

one of the primitive arrays.

Link copied to clipboard
abstract val dtype: DataType

type of elements in array

Link copied to clipboard
abstract var size: Int

Inheritors

Link copied to clipboard