• Python - SciPy

    Linear Algebra with SciPy

    Linear Algebra with SciPy Linear Algebra of SciPy is an implementation of BLAS and ATLAS LAPACK libraries. Performance of Linear Algebra is very fast compared to BLAS and LAPACK. Linear algebra routine accepts two-dimensional array object and output is also a two-dimensional array. Now let’s do some test with scipy.linalg, Calculating determinant of a two-dimensional matrix, from scipy import linalg import numpy as np #define square matrix two_d_array = np.array([ [4,5], [3,2] ]) #pass values to det() function linalg.det( two_d_array ) Output: -7.0 Inverse Matrix – scipy.linalg.inv() Inverse Matrix of Scipy calculates the inverse of any square matrix. Let’s see, from scipy import…