- #1
sifatraquib
- 1
- 0
- TL;DR Summary
- SymPy and NumPy are returning the BlockMatrix raised to negative one.
I am using the following code. It's returning the block matrix (Z) raised to negative one (think about inputting 22/7 in a Casio fx-991ES PLUS).
Could someone please tell how I can do this right now?
Note that I have used both Z.I and Z.inv(). They return the same thing.
Python:
import sympy as sp
from IPython.display import display
X = sp.Matrix([[1, 1, 1], [2, 2, 2], [3, 3, 3]])
i = sp.Matrix([[1], [1], [1]])
Z = sp.BlockMatrix([[i.T*i, i.T*X], [X.T*i, X.T*X]])
Z_inv = Z.I
display(i, X, Z, Z_inv)
Could someone please tell how I can do this right now?
Note that I have used both Z.I and Z.inv(). They return the same thing.