Row and column matrices #
This file provides results about row and column matrices
Main definitions #
Matrix.row r : Matrix Unit n α
: a matrix with a single rowMatrix.col c : Matrix m Unit α
: a matrix with a single columnMatrix.updateRow M i r
: update thei
th row ofM
tor
Matrix.updateCol M j c
: update thej
th column ofM
toc
Matrix.col ι u
the matrix with all columns equal to the vector u
.
To get a column matrix with exactly one column, Matrix.col (Fin 1) u
is the canonical choice.
Equations
- Matrix.col ι w = Matrix.of fun (x : m) (x_1 : ι) => w x
Instances For
Matrix.row ι u
the matrix with all rows equal to the vector u
.
To get a row matrix with exactly one row, Matrix.row (Fin 1) u
is the canonical choice.
Equations
- Matrix.row ι v = Matrix.of fun (x : ι) (y : n) => v y
Instances For
Updating rows and columns #
Update, i.e. replace the i
th row of matrix A
with the values in b
.
Equations
- M.updateRow i b = Matrix.of (Function.update M i b)
Instances For
Update, i.e. replace the j
th column of matrix A
with the values in b
.
Equations
- M.updateCol j b = Matrix.of fun (i : m) => Function.update (M i) j (b i)
Instances For
Alias of Matrix.updateCol
.
Update, i.e. replace the j
th column of matrix A
with the values in b
.
Equations
Instances For
Alias of Matrix.updateCol_self
.
Alias of Matrix.updateCol_ne
.
Alias of Matrix.updateCol_apply
.
Alias of Matrix.updateCol_subsingleton
.
Alias of Matrix.map_updateCol
.
Alias of Matrix.updateCol_transpose
.
Alias of Matrix.updateCol_conjTranspose
.
Alias of Matrix.updateCol_eq_self
.
Alias of Matrix.diagonal_updateCol_single
.
Updating rows and columns commutes in the obvious way with reindexing the matrix.
Alias of Matrix.updateCol_submatrix_equiv
.
Alias of Matrix.submatrix_updateCol_equiv
.
reindex
versions of the above submatrix
lemmas for convenience.
Alias of Matrix.updateCol_reindex
.
Alias of Matrix.reindex_updateCol
.