Sympy makes this straightforward.
>>> from sympy import Matrix
>>> A = [[2, 3, 5], [-4, 2, 3], [0, 0, 0]]
>>> A = Matrix(A)
>>> A * A.nullspace()[0]
Matrix([
[0],
[0],
[0]])
>>> A.nullspace()
[Matrix([
[-1/16],
[-13/8],
[ 1]])]
More Related Contents:
- Vectorized way of calculating row-wise dot product two matrices with Scipy
- Show confidence limits and prediction limits in scatter plot
- Why does numpy.linalg.solve() offer more precise matrix inversions than numpy.linalg.inv()?
- How to convert a column or row matrix to a diagonal matrix in Python?
- How to find linearly independent rows from a matrix
- Fitting to Poisson histogram
- Converting image from RGB to HSV color space
- How do I read CSV data into a record array in NumPy?
- What are the differences between numpy arrays and matrices? Which one should I use?
- Working with big data in python and numpy, not enough ram, how to save partial results on disc?
- numpy matrix vector multiplication [duplicate]
- Python out of memory on large CSV file (numpy)
- How to implement Matlab’s mldivide (a.k.a. the backslash operator “\”)
- how does multiplication differ for NumPy Matrix vs Array classes?
- python numpy/scipy curve fitting
- Bin elements per row – Vectorized 2D Bincount for NumPy
- Fitting a Normal distribution to 1D data
- Populate a Pandas SparseDataFrame from a SciPy Sparse Matrix
- How to extend an array in-place in Numpy?
- How do I install SciPy on 64 bit Windows?
- fitting exponential decay with no initial guessing
- How to plot line (polygonal chain) with numpy/scipy/matplotlib with minimal smoothing
- numpy elementwise outer product
- Load just part of an image in python
- generalized cumulative functions in NumPy/SciPy?
- Principal component analysis in Python
- Consecutive, Overlapping Subsets of Array (NumPy, Python)
- A numpy array unexpectedly changes when changing another one despite being separate
- Computing cross-correlation function?
- Understanding scipy deconvolve