Macaulay2 Engine
Loading...
Searching...
No Matches

◆ nullSpace() [5/5]

template<typename Mat>
size_t MatrixOps::nullSpace ( const Mat & A,
Mat & result_nullspace )

the null space of a matrix

result_nullspace is set to the matrix whose columns form a basis for {x | Ax = 0}. Returns the dimension of the nullspace.

result_nullspace should be a Mat, with the same ring/type as the input matrix A. result_nullspace does not need to be the correct size, it will be resized if needed.

throws an engine_error for ring/matrix types where the function is not implemented.

Definition at line 220 of file mat-linalg.hpp.

221{
222 (void) A;
223 (void) result_nullspace;
224 throw exc::engine_error(
225 "'nullSpace' not implemented for this kind of matrix over this ring");
226}

Referenced by MutableMat< Mat >::nullSpace().