previous  next
LinKer
Syntax
LinKer(M:MAT):LIST

where M is a matrix over Q or Z.
Summary
find the kernel of a matrix
Description
This function returns a list whose components are lists representing
a Z-basis for the kernel of M.  Calling the function twice on the same
input will not necessarily produce the same output, though in each
case, a basis for the kernel is produced.

Example

M := Mat([[1,2,3,4],[5,6,7,8],[9,10,11,12]]);
LinKer(M);
[[1, -1, -1, 1], [0, 1, -2, 1]]
-------------------------------
M*Transposed(Mat(It));
Mat[
  [0, 0],
  [0, 0],
  [0, 0]
]
-------------------------------
See also: