koblas

F64MatrixLike

Read-only matrix contract. Anything that only reads a matrix should take this.

Inheritors

Properties

cols

abstract val cols: Int(source)

Number of columns.

rows

abstract val rows: Int(source)

Number of rows.

Functions

get

abstract operator fun get(i: Int, j: Int): Double(source)

The entry at row (i), column (j). Throws IndexOutOfBoundsException outside the shape, whatever the storage.

toArray

abstract fun toArray(): Array<DoubleArray>(source)

Materialise into a fresh Array<DoubleArray> of rows, independent of the internal storage.

Link copied to clipboard

Matrix-vector product into a fresh dense result for any F64MatrixLike against any F64VectorLike. gemv provide transpose and destination-buffer variants.