koblas

F64MatrixView

@Serializable
sealed interface F64MatrixView : F64MatrixLike(source)

The matrix storages koblas itself defines, F64DenseMatrix and F64SparseMatrix.

Inheritors

Properties

Link copied to clipboard
abstract val cols: Int

Number of columns.

Link copied to clipboard
abstract val rows: Int

Number of rows.

Functions

Link copied to clipboard
abstract operator fun get(i: Int, j: Int): Double

The entry at row (i), column (j). Throws IndexOutOfBoundsException outside the shape, whatever the 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.

Link copied to clipboard
abstract fun toArray(): Array<DoubleArray>

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