Module ateams.arithmetic.BuiltinWrapper
Functions
def Kernel(M, A)
-
Returns a basis for the kernel of
A
.Args
M
:MatrixReduction
- A
MatrixReduction
object. A
:np.array
- A 2D
NumPy
array to be reduced.
Returns
A 2D
NumPy
array representing the reduced basis of \mathrm{ker}(A). def KernelSample(M, A)
-
Draws a uniform random sample from the kernel of
A
using theMatrixReduction
objectM
.Args
M
:MatrixReduction
- Contains the RREF form of a matrix.
A
:np.ndarray
- 2D
NumPy
array whose kernel is computed and sampled from.
Returns
A vector sampled at uniform random from the kernel of the matrix stored in
M
.