https://github.com/dubzzz/cuda-mathmodule-for-python
Python module for Mathematics using CUDA
https://github.com/dubzzz/cuda-mathmodule-for-python
Last synced: 4 days ago
JSON representation
Python module for Mathematics using CUDA
- Host: GitHub
- URL: https://github.com/dubzzz/cuda-mathmodule-for-python
- Owner: dubzzz
- License: mit
- Created: 2014-05-05T14:30:21.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-06-13T01:48:56.000Z (over 11 years ago)
- Last Synced: 2025-03-21T02:15:40.336Z (7 months ago)
- Language: Python
- Size: 355 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
cuda-mathmodule-for-python
==========================Python module for Linear Algebra computations using CUDA. The module relies on Cython and NumPy/C API.
Converting a NumPy array to a GPU-array:
```Python
import numpy as np, mathmodule as mm
numpy_array = np.random.random(5)
gpu_array = mm.PyVector(numpy_array)
```And GPU-array to NumPy array:
```Python
numpy_array = gpu_array.toNumPy()
```