Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

matrixflow

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

matrixflow

A rich library with implementations for mathematical matrices and vectors and their operations

  • 0.1.3
  • PyPI
  • Socket score

Maintainers
1

Matrixflow

Downloads

A rich library with implementations for mathematical matrices and vectors and their operations

Refer to the documentation over here

Installation

Python 3.10 or higher is required

py -m pip install matrixflow

or from github

py -m pip install git+https://github.com/Tom-the-Bomb/matrixflow.git

Examples

from matrixflow import Matrix, Vector

A = Matrix([
    [1, 2, 3],
    [4, 5, 6],
    [7, 8, 9],
])
print(A.det()) # calculates the determinant
A.transpose()   # transposes `A` in place

u = Vector([1, 2, 3])
v = Vector([4, 5, 6])
print(u * v)   # calculates the dot product

Further examples can be found over at the documentation here

Highlight Features

  • Matrices

    • Basic operations: addition, subtraction, scalar/matrix multiplication and other basic matrix functions
    • Linear transformations
    • determinant
    • Linear system of equations:
      • Gaussian elimination: row echelon & reduced row echelon forms
      • Inverse
    • and many more!
  • Vectors

    • Basic operations: addition, subtraction, scalar/dot/cross products and other basic vector functions
    • polar/spherical and cartesian conversions
    • projection, rejection
    • and many more!

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc