JuliaMath / JuliaMath/RandomMatrices.jl

Error thrown when calling `rand(d::GaussianLaguerre, dims::Dim2)` method

Open
#87 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
94
Forks
41
PR merge metrics
No merged PRs in 30d

Description

While writing docstrings for `rand` methods I found this:
```
julia> rand(GaussianLaguerre(2, 1.0), (3, 3))
ERROR: UndefVarError: `a` not defined in `RandomMatrices`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
[1] rand(d::GaussianLaguerre, dims::Tuple{Int64, Int64})
@ RandomMatrices ~/Documents/Julia Packages/JuliaMatrices/RandomMatrices.jl/src/GaussianEnsembles.jl:180
[2] top-level scope
@ REPL[54]:1
```
Originates from not accessing `a` from the object `d`. Tests should be added for this method too as it looks a little suspicious as is:
https://github.com/JuliaMath/RandomMatrices.jl/blob/c76044d43e718900e72fe71266955c65a47258b0/src/GaussianEnsembles.jl#L149-L173

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.