MLX array supercharged
Project description
MLX eXtended
mlx.core.array supercharged.
Usage
After importing mlx, do this
import mlx.core as mx
# this will monkey patch `mlx.core.array` class with more convenient methods
import mlxx as _
Then you can use some methods like allclose
a = mx.array([1, 2, 3], dtype=mx.float32)
b = mx.array([1, 2, 3], dtype=mx.float32)
print(a.allclose(b))
print(a.inner(b))
Contributing
Feel free to make PRs!
Setup Dev Env
- Run
uv sync - Run
pre-commit install, oruv run pre-commit installif your shell doesn't autodetect venv
LICENSE
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
mlxx-0.1.0.tar.gz
(4.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
mlxx-0.1.0-py3-none-any.whl
(3.9 kB
view details)
File details
Details for the file mlxx-0.1.0.tar.gz.
File metadata
- Download URL: mlxx-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d8928a70654b4124c47f888f520135ee55434a2b60c49731828dfa1d571b9bf
|
|
| MD5 |
3bd8c80bdf146a2113a35ebe38fd622e
|
|
| BLAKE2b-256 |
aefbea3b9dd03986a6d2f017aa96288bcdf09b8513a07f9d83cf7b46ee61445f
|
File details
Details for the file mlxx-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mlxx-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ea35bca69d2437f0dd85d850b39c5b30b0a1392105a7a27e487b6daa55f348d
|
|
| MD5 |
2aea57c3fb39b6112f04f4e1bcb684dd
|
|
| BLAKE2b-256 |
435d781eff2de956a926db5a97951bea765b4e45278eadb156587662a6617a4a
|