OffsetIntBuffer

class OffsetIntBuffer(source: IntBuffer, offset: Int, val size: Int) : MutableBuffer<Int> (source)

Default BufferedTensor implementation for Int values

Constructors

Link copied to clipboard
constructor(source: IntBuffer, offset: Int, size: Int)

Functions

Link copied to clipboard
open override fun copy(): IntBuffer

Copy only a part of buffer that belongs to this tensor

Link copied to clipboard
open operator override fun get(index: Int): Int
Link copied to clipboard
open operator override fun iterator(): Iterator<Int>
Link copied to clipboard
inline fun OffsetIntBuffer.map(operation: (Int) -> Int): IntBuffer

Map only operable content of the offset buffer

Link copied to clipboard
inline fun OffsetIntBuffer.mapInPlace(operation: (Int) -> Int)

map in place

Link copied to clipboard
open operator override fun set(index: Int, value: Int)
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun view(addOffset: Int, newSize: Int = size - addOffset): OffsetIntBuffer
Link copied to clipboard
inline fun OffsetIntBuffer.zip(other: OffsetIntBuffer, operation: (l: Int, r: Int) -> Int): IntBuffer

Properties

Link copied to clipboard
open override val size: Int