Numpy 简明教程

NumPy - Linear Algebra

NumPy包包含 numpy.linalg 模块,该模块提供了线性代数所需的所有功能。此模块中的部分重要函数在以下表格中有所描述。

NumPy package contains numpy.linalg module that provides all the functionality required for linear algebra. Some of the important functions in this module are described in the following table.

Sr.No.

Function & Description

1

dotDot product of the two arrays

2

vdotDot product of the two vectors

3

innerInner product of the two arrays

4

matmulMatrix product of the two arrays

5

determinantComputes the determinant of the array

6

solveSolves the linear matrix equation

7

invFinds the multiplicative inverse of the matrix