DenseMatrixRegion
Mutable column-major storage with unit row stride, shared by DenseMatrix and DenseMatrixView. Entry A(i, j) is at offset + i + j * leadingDimension in values.
com.eignex.koblas.dense.DenseBlas accepts regions for every dense matrix operation, as do mixed CSC products. A region is mutable through its buffer and set.
Inheritors
Properties
leadingDimension
Distance between consecutive column starts.
offset
values
Shared column-major backing buffer, including entries outside this region.
Functions
set
view
open fun view(rowOffset: Int = 0, columnOffset: Int = 0, rows: Int = this.rows - rowOffset, cols: Int = this.cols - columnOffset): DenseMatrixView(source)
Borrows a rectangle without copying. Mutations through either reference are shared. Offsets and extents are relative to this region; a nested view retains the parent's leading dimension. Empty rectangles at either boundary are valid and access no entries.