You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to construct static random matrix by using @SMatrix. And @SMatrix randn(ComplexF64,2,2) works. But when try to further seed the random number generator like
using StatsBase
using Statistics
using Random
using StaticArrays
rng = MersenneTwister(123)
@SMatrix randn(rng,ComplexF64,(2,2))
I got the error
ERROR: TypeError: in Type, in parameter, expected Type, got a value of type MersenneTwister
The text was updated successfully, but these errors were encountered:
I try to construct static random matrix by using
@SMatrix
. And@SMatrix randn(ComplexF64,2,2)
works. But when try to further seed the random number generator likeI got the error
The text was updated successfully, but these errors were encountered: