Building blocks for Quax classes
Project description
quax-blocks
Building blocks for Quax classes
quax enables JAX to work with custom
array-ish objects. This library provides the building blocks, like comparison
operators, for building quax-compatible classes.
Installation
pip install quax-blocks
Documentation
Rich Comparison Operators
| Comparison Operator | Lax Operator | NumPy Operator |
|---|---|---|
| All Comparisons | LaxComparisonMixin |
NumpyComparisonMixin |
__eq__ |
LaxEqMixin |
NumpyEqMixin |
__ne__ |
LaxNeMixin |
NumpyNeMixin |
__lt__ |
LaxLtMixin |
NumpyLtMixin |
__le__ |
LaxLeMixin |
NumpyLeMixin |
__gt__ |
LaxGtMixin |
NumpyGtMixin |
__ge__ |
LaxGeMixin |
NumpyGeMixin |
Binary Operators
| Binary Operator | Lax Operator | NumPy Operator |
|---|---|---|
| All Binary Operations | LaxBinaryOpsMixin |
NumpyBinaryOpsMixin |
| All Float Operations | LaxMathMixin |
NumpyMathMixin |
__add__ |
LaxAddMixin |
NumpyAddMixin |
__radd__ |
LaxRAddMixin |
NumpyRAddMixin |
__sub__ |
LaxSubMixin |
NumpySubMixin |
__rsub__ |
LaxRSubMixin |
NumpyRSubMixin |
__mul__ |
LaxMulMixin |
NumpyMulMixin |
__rmul__ |
LaxRMulMixin |
NumpyRMulMixin |
__matmul__ |
LaxMatMulMixin |
NumpyMatMulMixin |
__rmatmul__ |
LaxRMatMulMixin |
NumpyRMatMulMixin |
__truediv__ |
LaxTrueDivMixin |
NumpyTrueDivMixin |
__rtruediv__ |
LaxRTrueDivMixin |
NumpyRTrueDivMixin |
__floordiv__ |
LaxFloorDivMixin |
NumpyFloorDivMixin |
__rfloordiv__ |
LaxRFloorDivMixin |
NumpyRFloorDivMixin |
__mod__ |
LaxModMixin |
NumpyModMixin |
__rmod__ |
LaxRModMixin |
NumpyRModMixin |
__divmod__ |
Not Implemented | NumpyDivModMixin |
__rdivmod__ |
Not Implemented | NumpyRDivModMixin |
__pow__ |
LaxPowMixin |
NumpyPowMixin |
__rpow__ |
LaxRPowMixin |
NumpyRPowMixin |
| All Bitwise Operations | LaxBitwiseMixin |
NumpyBitwiseMixin |
__lshift__ |
LaxLShiftMixin |
NumpyLShiftMixin |
__rlshift__ |
LaxRLShiftMixin |
NumpyRLShiftMixin |
__rshift__ |
LaxRShiftMixin |
NumpyRShiftMixin |
__rrshift__ |
LaxRRShiftMixin |
NumpyRRShiftMixin |
__and__ |
LaxAndMixin |
NumpyAndMixin |
__rand__ |
LaxRAndMixin |
NumpyRAndMixin |
__xor__ |
LaxXorMixin |
NumpyXorMixin |
__rxor__ |
LaxRXorMixin |
NumpyRXorMixin |
__or__ |
LaxOrMixin |
NumpyOrMixin |
__ror__ |
LaxROrMixin |
NumpyROrMixin |
Unary Operators
| Unary Operator | Lax Operator | NumPy Operator |
|---|---|---|
| All Unary Operations | LaxUnaryMixin |
NumpyUnaryMixin |
__pos__ |
LaxPosMixin |
NumpyPosMixin |
__neg__ |
LaxNegMixin |
NumpyNegMixin |
__abs__ |
LaxAbsMixin |
NumpyAbsMixin |
__invert__ |
Not Implemented | NumpyInvertMixin |
Rounding Operators
| Unary Operator | Lax Operator | NumPy Operator |
|---|---|---|
__round__ |
LaxRoundMixin |
NumpyRoundMixin |
__trunc__ |
LaxTruncMixin |
NumpyTruncMixin |
__floor__ |
LaxFloorMixin |
NumpyFloorMixin |
__ceil__ |
LaxCeilMixin |
NumpyCeilMixin |
Containers
| Container Operator | Lax Operator | NumPy Operator |
|---|---|---|
__len__ |
LaxLenMixin |
NumpyLenMixin |
__length_hint__ |
LaxLengthHintMixin |
NumpyLengthHintMixin |
Copy Operators
| Copy Operator | NumPy Operator |
|---|---|
__copy__ |
NumpyCopyMixin |
__deepcopy__ |
NumpyDeepCopyMixin |
Development
We welcome contributions!
Citation
If you found this library to be useful and want to support the development and maintenance of lower-level utility libraries for the scientific community, consider citing this work.
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
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
File details
Details for the file quax_blocks-0.4.1.tar.gz.
File metadata
- Download URL: quax_blocks-0.4.1.tar.gz
- Upload date:
- Size: 71.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d41cb943fe53a8098cd3a4671088f77f1e02050e16f637c55dd845e926bb2d2a
|
|
| MD5 |
cdb20afd79f2c38dce7ead0fa9f86a00
|
|
| BLAKE2b-256 |
2fe2435c5e18e41bfa4c4fe93911111cd2517c7f3a309519a30b885411260ed8
|
Provenance
The following attestation bundles were made for quax_blocks-0.4.1.tar.gz:
Publisher:
cd.yml on GalacticDynamics/quax-blocks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quax_blocks-0.4.1.tar.gz -
Subject digest:
d41cb943fe53a8098cd3a4671088f77f1e02050e16f637c55dd845e926bb2d2a - Sigstore transparency entry: 1439183917
- Sigstore integration time:
-
Permalink:
GalacticDynamics/quax-blocks@be083fa73de03e5a29ca2bbdc40266bcec5fedb0 -
Branch / Tag:
refs/tags/v0.4.1 - Owner: https://github.com/GalacticDynamics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@be083fa73de03e5a29ca2bbdc40266bcec5fedb0 -
Trigger Event:
release
-
Statement type:
File details
Details for the file quax_blocks-0.4.1-py3-none-any.whl.
File metadata
- Download URL: quax_blocks-0.4.1-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7931cae95556b47f6eb3a2331493b62222ed7a4724c46120b1c80d9dafde027d
|
|
| MD5 |
e7552d173c830b84a4d5be760dcdbe74
|
|
| BLAKE2b-256 |
2c21efd636c4243aaaff94ad175ee9726a343f690686c098e4b507f96e9c5329
|
Provenance
The following attestation bundles were made for quax_blocks-0.4.1-py3-none-any.whl:
Publisher:
cd.yml on GalacticDynamics/quax-blocks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quax_blocks-0.4.1-py3-none-any.whl -
Subject digest:
7931cae95556b47f6eb3a2331493b62222ed7a4724c46120b1c80d9dafde027d - Sigstore transparency entry: 1439183921
- Sigstore integration time:
-
Permalink:
GalacticDynamics/quax-blocks@be083fa73de03e5a29ca2bbdc40266bcec5fedb0 -
Branch / Tag:
refs/tags/v0.4.1 - Owner: https://github.com/GalacticDynamics
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@be083fa73de03e5a29ca2bbdc40266bcec5fedb0 -
Trigger Event:
release
-
Statement type: