JuliaMath / JuliaMath/RandomMatrices.jl

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

未关闭
#87 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Julia
星标
94
派生
41
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start in src/GaussianEnsembles.jl, especially the rand method around lines 149-180, and reproduce the GaussianLaguerre call shown in the issue. Verify the parameter access and add tests for the rand method, then run the relevant package tests to confirm the call succeeds.

由索引模型根据 Issue 内容生成。

评估

技术栈
julia
领域
testing
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。