Skip to content

Commit d2b3451

Browse files
committed
switch jldoctest to @example
1 parent fa4514e commit d2b3451

3 files changed

Lines changed: 13 additions & 21 deletions

File tree

src/GaussianEnsembles.jl

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,12 @@ Represents a Gaussian Hermite ensemble with Dyson index `β`.
3232
3333
## Examples
3434
35-
```jldoctest
36-
julia> d = Wigner(2); n = 3;
37-
38-
julia> Random.seed!(1234);
39-
40-
julia> rand(d, n)
35+
```@example
36+
julia> rand(Wigner(2), 3)
4137
3×3 LinearAlgebra.Hermitian{ComplexF64, Matrix{ComplexF64}}:
42-
0.560409+0.0im -0.292145+0.125521im 1.04191+0.513798im
43-
-0.292145-0.125521im -0.346868+0.0im 0.0228835-0.00164725im
44-
1.04191-0.513798im 0.0228835+0.00164725im -0.118721+0.0im
38+
0.383322+0.0im -0.0452508+0.491032im -0.313208-0.330435im
39+
-0.0452508-0.491032im -0.264521+0.0im -0.131337+0.0904235im
40+
-0.313208+0.330435im -0.131337-0.0904235im -0.481758+0.0im
4541
```
4642
"""
4743
struct GaussianHermite{β} <: ContinuousMatrixDistribution end

src/Ginibre.jl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,12 @@ of all invertible `N × N` matrices over the field `F`.
1313
1414
## Examples
1515
16-
```jldoctest
17-
julia> Random.seed!(1234);
18-
16+
```@example
1917
julia> rand(Ginibre(2, 3))
2018
3×3 Matrix{ComplexF64}:
21-
0.970656-0.763689im -0.0328031-0.0998909im 2.70742+0.942733im
22-
-0.979218-0.534709im -0.600792-0.726142im 1.52445-0.00991272im
23-
0.901861-0.837116im -1.44518-0.00420647im -0.20563-0.66748im
19+
0.781329+2.00346im 0.0595122+0.488652im -0.323494-0.35966im
20+
1.11089+0.935174im -0.384457+1.71419im 0.114358-0.360676im
21+
1.54119+0.362003im -0.693623-2.50141im -1.42383-1.06341im
2422
```
2523
2624
## References:

src/Haar.jl

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,12 @@ classical orthogonal, unitary and symplectic groups `O(n)`, `U(n)` and
7777
7878
## Examples
7979
80-
```jldoctest
81-
julia> Random.seed!(1234);
82-
80+
```@example
8381
julia> rand(Haar(2), 3)
8482
3×3 Matrix{ComplexF64}:
85-
-0.587093-0.106607im -0.109587-0.0619909im 0.666498+0.428819im
86-
0.120119+0.525468im 0.205226+0.641757im -0.0408499+0.503801im
87-
-0.591627-0.0582071im 0.725559+0.0611728im -0.28036-0.194448im
83+
-0.275126-0.112754im -0.217139-0.293544im 0.299633-0.829756im
84+
0.48675-0.575106im 0.226526-0.445825im -0.406164-0.131472im
85+
-0.245835-0.532433im 0.375591+0.689594im -0.0243468-0.197175im
8886
```
8987
9088
## References:

0 commit comments

Comments
 (0)