A small project offering a Python-wrapped C++ library for tensor operations.
- Both CPU and C++ code for tensor creation, shape queries, slicing, and basic arithmetic.
- Python interface built using CFFI-like strategies via ctypes.
- Clone the repo:
git clone https://github.com/kingjuno/lumine.git cd lumine
- Install Python dependencies:
pip install -r requirements.txt
- Build with CMake:
cmake -S cmake -B build cmake --build build
- Install the Python package:
pip install -e .
After installation, import the Python API:
from lumine import tensor
arr = tensor([[1, 2], [3, 4]])
print(arr) # Displays the 2D array
Contributions are welcome. Submit pull requests or file issues.
This project is licensed under the MIT License.