Row and column matrices #
This file provides results about row and column matrices.
Main definitions #
Matrix.replicateRow ι r : Matrix ι n α
: the matrix where every row is the vectorr : n → α
Matrix.replicateCol ι c : Matrix m ι α
: the matrix where every column is the vectorc : m → α
Matrix.updateRow M i r
: update thei
th row ofM
tor
Matrix.updateCol M j c
: update thej
th column ofM
toc
Matrix.replicateCol ι u
is the matrix with all columns equal to the vector u
.
To get a column matrix with exactly one column,
Matrix.replicateCol (Fin 1) u
is the canonical choice.
Equations
- Matrix.replicateCol ι w = Matrix.of fun (x : m) (x_1 : ι) => w x
Instances For
Alias of Matrix.replicateCol
.
Matrix.replicateCol ι u
is the matrix with all columns equal to the vector u
.
To get a column matrix with exactly one column,
Matrix.replicateCol (Fin 1) u
is the canonical choice.
Equations
Instances For
Alias of Matrix.replicateCol_apply
.
Matrix.replicateRow ι u
is the matrix with all rows equal to the vector u
.
To get a row matrix with exactly one row, Matrix.replicateRow (Fin 1) u
is the canonical choice.
Equations
- Matrix.replicateRow ι v = Matrix.of fun (x : ι) (y : n) => v y
Instances For
Alias of Matrix.replicateRow
.
Matrix.replicateRow ι u
is the matrix with all rows equal to the vector u
.
To get a row matrix with exactly one row, Matrix.replicateRow (Fin 1) u
is the canonical choice.
Equations
Instances For
Alias of Matrix.replicateRow_apply
.
Alias of Matrix.replicateCol_injective
.
Alias of Matrix.replicateCol_inj
.
Alias of Matrix.replicateCol_zero
.
Alias of Matrix.replicateCol_eq_zero
.
Alias of Matrix.replicateCol_add
.
Alias of Matrix.replicateCol_smul
.
Alias of Matrix.replicateRow_injective
.
Alias of Matrix.replicateRow_zero
.
Alias of Matrix.replicateRow_eq_zero
.
Alias of Matrix.replicateRow_add
.
Alias of Matrix.replicateRow_smul
.
Alias of Matrix.transpose_replicateCol
.
Alias of Matrix.transpose_replicateRow
.
Alias of Matrix.conjTranspose_replicateCol
.
Alias of Matrix.conjTranspose_replicateRow
.
Alias of Matrix.replicateRow_vecMul
.
Alias of Matrix.replicateCol_vecMul
.
Alias of Matrix.replicateCol_mulVec
.
Alias of Matrix.replicateRow_mulVec
.
Alias of Matrix.replicateRow_mulVec_eq_const
.
Alias of Matrix.mulVec_replicateCol_eq_const
.
Alias of Matrix.replicateRow_mul_replicateCol
.
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
.