用于处理矩阵和向量的工具。

LinearAlgebra的Python项目详细描述


概述

本模块包含一些线性代数工具。它包含类 定义矩阵和向量,以及用于 关于那些矩阵和向量。它是为了数学和 科学使用。这在线性代数课上节省了我很多时间。

课程

  • vector: collection which defines a vector in Cartesian coordinates
  • matrix: two-dimensional collection stored in row-major order

功能

  • AxApproxB: solves Ax approximately equal to b; for use when the rows of matrix b are not in the column space of A
  • axpy: ax+y where a is a scalar, and x and y are vectors
  • bestfit: used to find a line of best fit from given points
  • colVec: makes a matrix with one column
  • det: returns the determinant of a square matrix. Can return a cross product if the top row contains the unit vectors.
  • dot: returns the dot product of two vectors
  • crossProduct: Returns a cross product
  • GaussJordan: solves AX=B, where matrices A and B are known and X is returned. If B is not in the column-space of A, use AxApproxB.
  • identityMatrix: makes an identity matrix of a given size
  • linearCombination: returns a linear combination based on a list of scalars and a list of vectors
  • mmMult: matrix-matrix multiplication
  • mvMult: matrix-vector multiplication
  • norm: takes the norm of a vector; defaults to 2 (Euclidian norm)
  • permutationMatrix: makes a permutation matrix based on a given permutation vector
  • proj: projection of one vector onto another
  • rowVec: makes a matrix with one row
  • transpose: transposes a matrix
  • unitVector: constructs a unit vector
  • v: wrapper around vector instantiation
  • zeroMatrix: makes a zero matrix of a given size
  • zeroVector: makes a zero vector of a given size

更多信息

包含的帮助文件中提供了帮助。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java组织。openqa。硒。遥远的UnreachableBrowserException如何定义EXE路径?   java Camel AdviceWith不使用指定文件替换端点   基于字符串的java图像加载   Java中的启发式算法,计算8个谜题状态的线性冲突   java为什么不支持文件。probeContentType返回null   JPA@EntityListeners、@PrePersist和Spring@RepositoryEventHandler、@HandleBeforeSave之间的java差异   可能前缀的Java字符串到字符串[]   安装rJava | Makefile时发生java错误。全部:38:target’libjri的配方。所以他失败了   Java公共静态void main()   java如何覆盖txt文件中的某些单词   java如何获得循环中生成的字符值之和?   java Log4j创建另一个具有相同属性的appender   java如何在从Axis2 Web服务客户端通过代理服务器调用Web服务时设置代理设置?   在Windows上安装Elasticsearch时发生java错误   java如何向EditText组件添加TextChangedListener?