Loading...
Perform common matrix operations.
NumPy linear algebra operations:
Write a function matrix_ops(mat) that computes matrix properties.
Return a dictionary with:
[[1, 2], [3, 4]]
{'transpose': [[1, 3], [2, 4]], 'trace': 5, 'determinant': -2.0, 'is_symmetric': False}trace = 1+4 = 5, det = 14 - 23 = -2, not symmetric since [0,1] ≠ [1,0]