An open API service indexing awesome lists of open source software.

https://github.com/0xhilsa/pynum

a small python library for 1D and 2D arrays with GPU support
https://github.com/0xhilsa/pynum

array c cuda nvcc python3

Last synced: 2 months ago
JSON representation

a small python library for 1D and 2D arrays with GPU support

Awesome Lists containing this project

README

          


pynum


a small python library for 1D and 2D arrays with GPU support

## 🚀 Accelerators
- CUDA

## 📌 Prerequisites
- GCC Compiler
- NVCC Compiler [NVIDIA TOOLKIT](https://developer.nvidia.com/cuda-downloads)

## ⚡ Installation
```bash
git clone "git@github.com:0xhilSa/pynum.git" ~/pynum
cd pynum && rm -rf .git*
bash install.sh -y
```

## ✅ ToDo
- [X] Implement the `__setitem__` method
- [ ] Develop the `astype` method
- [X] To solve (core dumped) issue while adding 2 vectors of dtype complex128
- [ ] Add arithmetic and logical operations for the `Vector` class
- [ ] Ensure compatibility with Windows OS

## 🔥 Future Enhancements
- Introduction to Matrix dtype
- Implement an LLVM-based accelerator for CPU execution

> [!IMPORTANT]
> Arithmetic ops on vectors can only be performed if they have the same data type
> - (short - short) ✔️
> - (short - int) ❌

## 📜 LICENSE
[MIT](./LICENSE)