koblas

PackedMatrix

Retained logical matrix with its own physical layout. Its heap array remains alive across calls and threads. bakedScale and bakedTranspose describe transformations already present in its stored logical values; consumers do not apply them again. Product alpha scales the represented matrix, including its baked scale. Reuse unscaled operands when alpha changes. Borrowed storage must keep its contents and padding valid and must not be mutated concurrently with a call. This object borrows no workspace and requires no close hook.

Types

Link copied to clipboard
object Companion

Factories and format identifiers.

Properties

bakedScale

Scaling already present in logical stored values.

bakedTranspose

Whether stored values already represent a transpose.

columns

open override val columns: Int(source)

Logical column count, after any baked transpose.

layout

Validated physical format and geometry.

offset

First physical entry of the window.

ownership

Who controls the retained array.

rows

open override val rows: Int(source)

Logical row count, after any baked transpose.

Functions

get

operator fun get(row: Int, column: Int): Double(source)

Reads a logical entry without exposing owned mutable storage.