This repo is a tiny exploration into building a so
and loading it dynamically in Python. This aims to avoid any external dependencies and to be as simple as possible.
python main.py
# C = A @ B
# [[3.0233 2.9321 2.9654 3.0539 4.0246 3.4871 2.76 3.6758 3.7453 2.4666]
# [2.7564 2.1654 2.4579 2.7177 3.5147 2.7893 2.4571 3.1117 2.9277 2.4123]
# [2.8826 2.6334 2.6518 2.8662 3.3927 3.1056 2.9709 3.4881 3.2568 2.5164]
# [2.4921 2.783 2.5948 2.7552 3.7775 3.1847 2.5553 3.0021 3.2884 1.9426]
# [2.091 2.0446 2.0722 2.5538 2.2669 2.458 1.5528 2.1782 2.2105 1.8825]
# [2.3355 1.9323 2.639 2.5439 2.6188 2.4677 1.3533 2.0373 2.4577 1.7693]
# [1.7493 1.8355 2.0997 2.0552 2.4223 2.352 1.1145 1.7383 2.2318 1.1469]
# [2.9782 2.0588 2.8114 3.0017 2.7196 2.7607 1.6933 2.6411 2.7285 2.7366]
# [2.3017 1.9996 1.8709 2.8155 3.1381 2.6976 1.7816 2.4181 2.3654 2.1677]
# [1.8974 2.0728 1.9869 1.8846 2.7085 2.3281 1.8264 2.1682 2.5428 1.7767]]
# Success!