Linear Algebra
- 1 Cholesky decomposition The function chole() from the linear module of numpy returns the Cholesky decomposition of a given square matrix. 16 Jan 2025
- 2 Condition number of a matrix The condition number of a matrix is the maximum bound to which any perturbations to the input data will result in the change in output. 10 Apr 2025
- 3 Finding the determinant of a matrix using NumPy The det() function of numpy.linalg module finds the determinant of a matrix using LU decomposition method. It is found by multiplying the diagonal elements of the triangular matrices. 12 Apr 2025
- 4 Getting the diagonals of a matrix using NumPy The main diagonal of a matrix is constituted by the elements whose row number is equal to the column number. The diagonal() function of the numpy.linalg module returns the specific diagonal of a given matrix. 12 Apr 2025
- 5 The dot() function of NumPy module The dot() function of the NumPy module finds the dot product of two given NumPy arrays. 23 Feb 2025
- 6 Finding the eigenvalues and eigenvectors of a matrix The Python library NumPy provides the function eig() through the linalg module. The eig() function returns the eigenvalues and the eigenvectors of a square matrix. 22 Mar 2025
- 7 Finding the eigenvalues and the eigenvectors of a Hermitian matrix using NumPy The eigh() function of the linalg module of the NumPy library computes the eigenvalues and eigenvectors of a Hermitian matrix. 16 Apr 2025
- 8 Finding the eigenvalues of a matrix The eigenvalues of a matrix can be computed using the function eigvals() of the linalg module of NumPy library. 8 Mar 2025
- 9 Finding the inverse of a matrix The numpy Python library has the inv() function from the lining module that finds the square matrix for a given matrix. The inv() function can be a passed multiple matrices and their inverses are returned. 1 Apr 2025
- 10 The matmul() function of numpy The matmul() function of numpy provides the matrix multiplication of two multi-dimensional numpy arrays. 21 Feb 2025
- 11 Finding the norm of a matrix using Python numpy library The norm of a matrix is calculated by taking all the elements of the matrix into consideration and returning a positive real number. Several norms of matrix exist which include Frobenius norm, 1-norm, 2-norm, -1-norm, -2-norm, infinity norms and nuclear norm. 6 Apr 2025
- 12 Solving a system of linear equations using matrices with NumPy When number of variables are more, a system of linear equations can be solved easily using matrices. The solve() function of numpy.linalg module solves a system of linear equations and returns the results. 13 Apr 2025
- 13 Singular value decomposition using NumPy The function svd() from the numpy.linalg module finds the singular values of a matrix and returns them in an ndarray contained in an SVDResult instance. 9 Apr 2025
- 14 Calculating the singular values of one or more matrices using NumPy The singular values of one or more matrices can be calculated using the function svdvals() of linalg module from the NumPy library. 10 Apr 2025
- 15 Finding the trace of a matrix using NumPy The trace of the matrix is obtained by summing the elements of the main diagonal of a given array. The trace() function of numpy.linalg module computes the trace for of a diagonal including off-diagonals. 12 Apr 2025
- 16 Finding dot product of two vectors using vdot() function of NumPy The vdot() function of NumPy computes the dot product of two vectors. The Python example computes the dot product of two 2-dimensional arrays using the vdot() function. 28 Feb 2025
- 17 Finding vector norm using NumPy Vector norm of a given one or more vectors can be computed using the function vector_norm() of the linalg module of the NumPy library. The vector norm is a measure of the magnitude of the vector. 11 Apr 2025