JuliaMath / JuliaMath/RandomMatrices.jl
support StaticArrays
オープン
- 主要言語
- Julia
- スター
- 94
- フォーク
- 41
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
It would be nice if the various `rand(...)` functions supported returning an `SMatrix`, for example if `::Val{n}` is passed instead of `n::Integer`.
This improves performance and reduces memory allocations in cases where lots of small matrices need to be sampled. e.g. see [this example from discourse](https://discourse.julialang.org/t/code-speed-decreases-when-loop-number-increases/78920) which generates lots of 2x2 and 4x4 Haar-distributed unitary matrices.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。