Hello!
Is it expected behavior with rand!(zeros(4), MvNormal(Diagonal([1,2,3,4])))
?
Starting Julia...
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.7.0 (2021-11-30)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> using Random; using Distributions; using LinearAlgebra; rand!(zeros(4), MvNormal(Diagonal([1,2,3,4])))
ERROR: StackOverflowError:
Stacktrace:
[1] rand!(rng::TaskLocalRNG, A::Vector{Float64}, X::MvNormal{Int64, PDMats.PDiagMat{Int64, Vector{Int64}}, FillArrays.Zeros{Int64, 1, Tuple{Base.OneTo{Int64}}}}) (repeats 79984 times)
@ Random C:\Users\...\AppData\Local\Programs\Julia-1.7.0\share\julia\stdlib\v1.7\Random\src\Random.jl:267
julia>