Bases and matrices #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
This file defines the map basis.to_matrix
that sends a family of vectors to
the matrix of their coordinates with respect to some basis.
Main definitions #
basis.to_matrix e v
is the matrix whosei, j
th entry ise.repr (v j) i
basis.to_matrix_equiv
isbasis.to_matrix
bundled as a linear equiv
Main results #
linear_map.to_matrix_id_eq_basis_to_matrix
:linear_map.to_matrix b c id
is equal tobasis.to_matrix b c
basis.to_matrix_mul_to_matrix
: multiplyingbasis.to_matrix
with anotherbasis.to_matrix
gives abasis.to_matrix
Tags #
matrix, basis
From a basis e : ι → M
and a family of vectors v : ι' → M
, make the matrix whose columns
are the vectors v i
written in the basis e
.
The basis constructed by units_smul
has vectors given by a diagonal matrix.
The basis constructed by is_unit_smul
has vectors given by a diagonal matrix.
From a basis e : ι → M
, build a linear equivalence between families of vectors v : ι → M
,
and matrices, making the matrix whose columns are the vectors v i
written in the basis e
.
A generalization of linear_map.to_matrix_id
.
See also basis.to_matrix_reindex
which gives the simp
normal form of this result.
A generalization of basis.to_matrix_self
, in the opposite direction.
b.to_matrix b'
and b'.to_matrix b
are inverses.
A matrix whose columns form a basis b'
, expressed w.r.t. a basis b
, is invertible.
Equations
- b.invertible_to_matrix b' = {inv_of := b'.to_matrix ⇑b, inv_of_mul_self := _, mul_inv_of_self := _}