PyOZ v0.2.0
What's New in v0.2.0
Added
- NumPy array support via BufferView - Zero-copy access to numpy arrays
BufferView(T)for read-only access to numpy arraysBufferViewMut(T)for mutable (in-place) access- Supported dtypes:
f64,f32,i64,i32,i16,i8,u64,u32,u16,u8 - Complex number support:
complex128(pyoz.Complex),complex64(pyoz.Complex32) - Both C-contiguous and Fortran-contiguous array layouts supported
- 2D array support with
rows(),cols(),get2D(),set2D()methods - Automatic buffer release after function call
Complex32type for 32-bit complex numbers (two f32s)- Complex number arithmetic methods:
add,sub,mul,conjugate,magnitude - Comprehensive test suite for numpy/BufferView functionality
- Fair comparison with Ziggy-Pydust in README documentation
Installation
Download the binary for your platform and add it to your PATH:
| Platform | Binary |
|---|---|
| Linux x86_64 | pyoz-x86_64-linux |
| Linux ARM64 | pyoz-aarch64-linux |
| macOS x86_64 | pyoz-x86_64-macos |
| macOS ARM64 (Apple Silicon) | pyoz-aarch64-macos |
| Windows x86_64 | pyoz-x86_64-windows.exe |
| Windows ARM64 | pyoz-aarch64-windows.exe |
Source
Download PyOZ-0.2.0.tar.gz for the source code.
Quick Start
pyoz init mymodule
cd mymodule
pyoz build
pip install dist/*.whl