pamit
pamit -> ti map: Taichi Map Utils
PRs are welcomed! Please see TODOs.
Installation and Dependency
To install pamit, enter
python -m pip install pamit
Make sure you have Taichi installed.
Usage
The APIs of map_inplace() and map_to() are straight forward.
map_to requires the target field to have the same shape of the source field, but the "channels" may differ. Please see examples/extend_dimension for example.
If with_index is True, then the Taichi function is expected to have index (i.e., the index of an element in a field) and element (i.e., the value of an element in a field) as first two arguments.
Otherwise, the Taichi function is expected to have element as the first argument.
from pamit import map_inplace
import taichi as ti
@ti.func
def increment(element, val):
return element + val
field = ti.field(ti.f32, shape=(2, 3))
map_inplace(field, increment, False, 2.0)
print(field)
TODOs
- Check backward capability
- Reduce function
- Simple user documentation
Metadata
Release files for pamit 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pamit-0.1.2.tar.gz | 2.5 kB | Without provenance | Details for pamit-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pamit-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for pamit-0.1.2-py3-none-any.whl |
Total release size: 5.0 kB
Release files / pamit-0.1.2.tar.gz
| Download URL | pamit-0.1.2.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08ce40861cfe311b56715829f58658dbf75a222cb3e21f4eab6df231b33a0f75
|
|
BLAKE2b-256 checksum How to use checksums |
06d51a60b277ea9a927d89beb9315faad8b84fb228a974207474868bd0288e0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Release files / pamit-0.1.2-py3-none-any.whl
| Download URL | pamit-0.1.2-py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1394a61a59b9e74b9ca0933aa1d89400cc02c064a573e7a5652dcfedf3704a88
|
|
BLAKE2b-256 checksum How to use checksums |
3945cb5ce5f5fadbd0ac702760130163aa0e6c3e8e96a46317276d678ce2cdf4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Security for pamit 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.