Dense Row-Major Matrices #
Basic dense row-major matrix storage, indexing, and homogeneous-system predicates.
A dense matrix stores exactly one row-major entry for every matrix coordinate.
Instances For
Row-major index for the matrix entry (row, col).
Instances For
Read a matrix entry, returning zero outside the stored data.
Instances For
def
CompPoly.DenseMatrix.set
{F : Type u_1}
[Zero F]
(M : DenseMatrix F)
(row col : ℕ)
(value : F)
:
Replace a matrix entry when the row-major slot is stored.
Instances For
def
CompPoly.DenseMatrix.dotRow
{F : Type u_1}
[Semiring F]
(M : DenseMatrix F)
(row : ℕ)
(v : Array F)
:
F
Dot product of one matrix row with a vector.
Instances For
def
CompPoly.DenseMatrix.mulVec
{F : Type u_1}
[Semiring F]
(M : DenseMatrix F)
(v : Array F)
:
Array F
Matrix-vector product.
Instances For
A vector has the same width as the matrix column count.
Instances For
def
CompPoly.DenseMatrix.IsHomogeneousSolution
{F : Type u_1}
[Semiring F]
(M : DenseMatrix F)
(v : Array F)
:
A vector solves the homogeneous system represented by M.