Skip to main content

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

  1. Run uv sync
  2. Run pre-commit install, or uv run pre-commit install if your shell doesn't autodetect venv

LICENSE

MIT

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mlxx-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

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

Hashes for mlxx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8d8928a70654b4124c47f888f520135ee55434a2b60c49731828dfa1d571b9bf
MD5 3bd8c80bdf146a2113a35ebe38fd622e
BLAKE2b-256 aefbea3b9dd03986a6d2f017aa96288bcdf09b8513a07f9d83cf7b46ee61445f

See more details on using hashes here.

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

Hashes for mlxx-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ea35bca69d2437f0dd85d850b39c5b30b0a1392105a7a27e487b6daa55f348d
MD5 2aea57c3fb39b6112f04f4e1bcb684dd
BLAKE2b-256 435d781eff2de956a926db5a97951bea765b4e45278eadb156587662a6617a4a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page