koblas

VectorWindow

class VectorWindow(val data: DoubleArray, val size: Int, val offset: Int = 0, val stride: Int = 1)(source)

Validated borrowed vector window, including negative strides.

Constructors

VectorWindow

constructor(data: DoubleArray, size: Int, offset: Int = 0, stride: Int = 1)(source)

Properties

data

Borrowed backing array.

offset

First physical entry of the window.

size

Logical entry count.

stride

Physical distance between adjacent entries.

Functions

get

operator fun get(index: Int): Double(source)

Reads one logical entry.