Skip to main content

Experimental Linear Algebra library written in Rust

Project description

Lana 🧶

stability-wip

Linear Algebra for nocturnal and adventurous data scientists.

Install

pip install lana

Example

from lana import Matrix, inject

zeros = Matrix.zeros((3,3))
print(zeros)
print(f"shape: {zeros.shape}, type: {type(zeros)}")
print(zeros.to_list()[0], zeros.to_list()[0][0])

mat = Matrix.matrix([[1,2,3],[4,5,6]])
print(mat)
print(f"shape: {mat.shape}, type: {type(mat)}")
for rows in mat.to_list():
    print(rows, type(rows))

submat = Matrix.matrix(inject(mat.to_list()[0]))
print(submat)
print(submat.shape, type(submat))

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

lana-0.1.8.tar.gz (8.4 kB view hashes)

Uploaded Source

Built Distributions

lana-0.1.8-cp311-none-win_amd64.whl (514.2 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

lana-0.1.8-cp39-cp39-macosx_10_7_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.9 macOS 10.7+ x86-64

Supported by

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