https://github.com/iitis/matrixensembles.jl
https://github.com/iitis/matrixensembles.jl
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/iitis/matrixensembles.jl
- Owner: iitis
- License: gpl-3.0
- Created: 2020-10-25T14:24:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-02T12:49:02.000Z (about 3 years ago)
- Last Synced: 2025-02-21T20:18:39.284Z (over 1 year ago)
- Language: Julia
- Size: 345 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/iitis/MatrixEnsembles.jl)
[](https://coveralls.io/github/iitis/MatrixEnsembles.jl?branch=master)
# MatrixEnsembles.jl
## Sampling random matrices on the GPU
We have introduced an experimental implementation of sampling of random matrices and random quantum objects on the GPU. In order to use this feature, the `CUDA` package is required. To import `MatrixEnsembles` with GPU support use
```julia
using CUDA, MatrixEnsembles
```
In order to sample use the `curand` method on a distribuiotn. For instance
```julia
julia> c = CUE(4096)
CircularEnsemble{2}(4096, GinibreEnsemble{2}(4096, 4096))
julia> @time rand(c);
10.452419 seconds (8.22 k allocations: 2.005 GiB, 2.18% gc time)
julia> @time MatrixEnsembles.curand(c);
0.459959 seconds (624.79 k allocations: 21.493 MiB)
```
Please report any bugs/problems and feature requests.