Learning how to publish in PyPi through a generic implementation of matrix multiplication
Project description
ptorru-matmul
Learning about pipy, distributing a simple matrix multiply example
To consult how to distribute a package in PyPI take a look at the publish_notes.md
Installing this package
Using PyPI
pip install ptorru-matmul
Alternatively use poetry
poetry add ptorru-matmul
Using this package
import numpy as np
from ptorru_matmul import ptorru_matmul
sides = 3
a = np.arange(sides*sides).reshape(sides,sides)
b = np.arange(sides*sides).reshape(sides,sides)
c = ptorru_matmul(a,b)
assert np.array_equal(c, np.matmul(a,b))
print(a,b)
print(c)
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
ptorru-matmul-0.1.2.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for ptorru_matmul-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cc4ac9c07a09ed38a4af3117379cf6db125830a0c20f2ad19054a5cd90ddc09 |
|
MD5 | a3ca6d68a234bf21af4c1d78f20ee7a4 |
|
BLAKE2b-256 | 3127927342729414d7df08d8e89777c99119b26afc53fb994907c16d29f8261f |