Skip to main content

Overview

This module contains some tools for linear algebra. It contains classes to define matrices and vectors, and a number of functions for working on those matrices and vectors. It is intended for mathematical and scientific use. It saved me a lot of time in a linear algebra class.

Classes

  • vector: collection which defines a vector in Cartesian coordinates

  • matrix: two-dimensional collection stored in row-major order

Functions

  • 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

More Information

Help is available in the included help file.

Metadata

Release files for LinearAlgebra 1.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for LinearAlgebra 1.4.1
File Size Uploaded Provenance Actions
LinearAlgebra-1.4.1.tar.gz 5.5 kB Without provenance Details for LinearAlgebra-1.4.1.tar.gz

Release files / LinearAlgebra-1.4.1.tar.gz

Download URL LinearAlgebra-1.4.1.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8fd7350e2e003bf63e3a9a42ef534d8c26086a5284d4971e235163c21508db81
BLAKE2b-256 checksum
How to use checksums
3d116384476e8ea7f5d4d1c1585924942b33fc10ea042b7f96220cd00ea50a26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for LinearAlgebra 1.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page