JuliaMath / JuliaMath/RandomMatrices.jl

support StaticArrays

Abierto
#64 0 comentarios 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
Julia
Estrellas
94
Forks
41
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.