Experimental Linear Algebra library written in Rust
Project description
Lana 🧶
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
Release history Release notifications | RSS feed
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)
Built Distributions
lana-0.1.8-cp311-none-win_amd64.whl
(514.2 kB
view hashes)
Close
Hashes for lana-0.1.8-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11e96369805ba90e31d06fd638d90e771e5bd66d1be2afd70066969f36cad6be |
|
MD5 | 1f9eb8d4ae3e2b6ad0b8ae2957cc6d68 |
|
BLAKE2b-256 | f9f40dd8cc31f7109d56c0629212201280dd4210e998d2629feeb7e40f6ff19f |
Close
Hashes for lana-0.1.8-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b80b36a20310d149c6a9594570c257698c8c6b4d06171fdb7648128b26534d1 |
|
MD5 | a4a770c5d6a0c23470b5309bc3e23c4a |
|
BLAKE2b-256 | 8a8a6af4d88615b2f81a32923d2bebc6c98c39f6d23b9479ea5b6480db399603 |