Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support StaticArrays #64

Open
stevengj opened this issue Apr 2, 2022 · 0 comments
Open

support StaticArrays #64

stevengj opened this issue Apr 2, 2022 · 0 comments

Comments

@stevengj
Copy link
Member

stevengj commented Apr 2, 2022

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 which generates lots of 2x2 and 4x4 Haar-distributed unitary matrices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant