Null space of a matrix (null_space)
A basis of the null space of a matrix: the vectors v with A v = 0.
How to write it
null_space(matrix)
- matrix
- A matrix, written as a list of rows. Takes a matrix, written as a list of rows.
Examples
null_space([[1, 2], [2, 4]])In the solver,
Open in the solvernull_space([[1, 2], [2, 4]])gives[[-2, 1]].
Related functions
- orthogonalize
Orthonormal vectors spanning the same space as some vectors, by the Gram-Schmidt process.
- normalize
A vector scaled to length 1.
- pseudo_inverse
Moore-Penrose pseudo-inverse of a matrix.
- norm
Length of a vector.
- qr_decomposition
QR decomposition of a matrix: an orthogonal factor and an upper triangular one.
- minors
The matrix of minors: the determinant left when each row and column is removed.