Skip to main content

lalgpy is a package that help you with Linear algebra

Project description

LAlgPy

LAlgPy short for Python Linear Algebra is a lightweight Python package that support simple operation for Linear Algebra. It provides several features such as Vector() and Matrix() class. Additionally, it have a utilities module which provides array_add() and more. I made this package mainly for practice and not recommend for important and technical uses. Here are some examples:

import lalgpy as lp
v1 = lp.Vector(1,0)
v2 = lp.Vector(0,1)
print(v1, v2)
print(f"{v1} + {v2} = {v1 + v2}")

The output should be

Vector(1,0) Vector(0,1)
Vector(1,0) + Vector(0,1) = Vector(1,1)

It have some "shortcut" that help you calculate very quickly

x = lp.Vector(2,5,2)
y = lp.Vector(5,8,3)
print(lp.Vector.dot(x,y))
# The dot product
print(lp.Vector.cross(x,y))
# The cross product
print(lp.Vector.get_angle(x,y,rad=False))
# Get the angle between two vectors

The output should be:

56
Vector(-1,4,-9)
10.024987862075728

And much more features.


For more documentation, I suggest looking at the source, it is well documented.

Installation

pip install linearpy

This should install the package via the PYPI repository. Latest: 1.0.0 release

This is not a completed version of the package, issues can arrive and the Matrix class is not all implemented.

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

lalgpy-1.0.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

lalgpy-1.0.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file lalgpy-1.0.0.tar.gz.

File metadata

  • Download URL: lalgpy-1.0.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for lalgpy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5145aa74e39502f863faadaf9995af3a40f9bbed3213e78e50e30208fe9667b3
MD5 612e52d1e9d5cf96155b7c0edd4f3e5c
BLAKE2b-256 1d436b7d2ff5c8d9108f6371e190e1fea0a0c6a73a57f09ef66109048c9405eb

See more details on using hashes here.

File details

Details for the file lalgpy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: lalgpy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for lalgpy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3762c0ae3ef89f4a5bcc529e381ec46d205933297e2dcb4a5fac6ff81043631
MD5 fa512348d06cea23a1ce578668097761
BLAKE2b-256 6541cf31426f1d0e1b126ad6d33ba57ff0893e24b6e37d9d245ba1a47ba63df4

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