Skip to main content

A math implementation of Vectors and Matrix

Project description

lineargebra

My simple implementation of Vectors & Matrix to python, with maths nerd stuff.

Installation

pip3 install lineargebra

Usage Example

Vector (Vector2D and 3D works pretty much the same)

from lineargebra import Vector


ex_vector = Vector((1, 2, 3, 4))
ex_vector2 = Vector((4, 3, 2, 1))

ex_vector + ex_vector2  # output : Vector(5; 5; 5; 5)
ex_vector - ex_vector2  # output : Vector(-3; -1; 1; 3)
ex_vector * 2           # output : Vector(2; 4; 6; 8)
ex_vector * ex_vector2  # output : 20
ex_vector.inverted()    # output : Vector(4; 3; 2; 1)
ex_vector.inverted() == ex_vector2  # output : True

# and others...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lineargebra-0.2.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lineargebra-0.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file lineargebra-0.2.tar.gz.

File metadata

  • Download URL: lineargebra-0.2.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.8.0 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for lineargebra-0.2.tar.gz
Algorithm Hash digest
SHA256 1fc0f3d0ed097a2b982bfbc50b03794c71bdf6bf0b3985f430d1b6edf7154f43
MD5 3180976e1b239472e2e1704c922f91c6
BLAKE2b-256 3491fe1ae4623797ab86743012f92d5d643cac8b8ba3c43f6084acf9be52984e

See more details on using hashes here.

File details

Details for the file lineargebra-0.2-py3-none-any.whl.

File metadata

  • Download URL: lineargebra-0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.8.0 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for lineargebra-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 098ef74912ac265db587a1dde62426bef45fe7218c3c2ecb3e05333220213f52
MD5 bdea9f02391394d3106ef1de86e46179
BLAKE2b-256 f22210362dc6b447478db7057a9b64b60ce8ac16b6cc54c51c9ec4b7a8a33075

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page