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.3.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for ptorru_matmul-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b769b8d787a37b597555e3de63ae1b11c8349fb86b27b8709e97d4f0913c6910 |
|
MD5 | cdd9333e9c3cdfff593b78f7c2624eb5 |
|
BLAKE2b-256 | bf7eceadd108f09e6b40a77962f03e047d885192252ab616d3d99ab03eee557b |