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

sprandn doesn't support passing the type #29018

Closed
matteoacrossi opened this issue Sep 3, 2018 · 3 comments
Closed

sprandn doesn't support passing the type #29018

matteoacrossi opened this issue Sep 3, 2018 · 3 comments
Labels
sparse Sparse arrays

Comments

@matteoacrossi
Copy link

matteoacrossi commented Sep 3, 2018

In Julia v1.0, for sprand there is the definition

sprand(::Type{T}, m::Integer, n::Integer, density::AbstractFloat) where {T} = sprand(GLOBAL_RNG, T, m, n, density)

(and the same for rand and randn), so that I can obtain a sparse matrix of complex numbers with

sprand(Complex{Float64}, n, m, d)

Why is the same definition missing for sprandn?

@KristofferC
Copy link
Member

Probably just not added yet.

@lostella
Copy link
Contributor

lostella commented Sep 8, 2018

I have a fix for this when needed #29074

@ViralBShah
Copy link
Member

Fixed in #30090

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

No branches or pull requests

4 participants