Skip to content

Error when @SMatrix randn(rng,ComplexF64,(2,2)) #1019

@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions