JuliaMath / JuliaMath/RandomMatrices.jl

support StaticArrays

オープン
#64 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。