Skip to content

Round-trip printing #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 25, 2021
Merged

Round-trip printing #159

merged 1 commit into from
Jul 25, 2021

Conversation

YingboMa
Copy link
Member

Need SciML/ResettableStacks.jl#15 and JuliaRandom/RandomNumbers.jl#79

They are required to make the printing round-trip-able

julia> W = WienerProcess(1,2,3)
t: 1-element Vector{Int64}:
 1
u: 1-element Vector{Int64}:
 2

julia> show(W)
NoiseProcess{Int64, 1, Int64, Int64, Int64, Vector{Int64}, typeof(DiffEqNoiseProcess.WHITE_NOISE_DIST), typeof(DiffEqNoiseProcess.WHITE_NOISE_BRIDGE), false, ResettableStack{Tuple{Int64, Int64, Int64}, false}, ResettableStack{Tuple{Int64, Int64, Int64}, false}, RSWM{Float64}, Nothing, RandomNumbers.Xorshifts.Xoroshiro128Plus}(DiffEqNoiseProcess.WHITE_NOISE_DIST, DiffEqNoiseProcess.WHITE_NOISE_BRIDGE, [1], [2], [2], [3], 1, 2, 3, 1, 2, 3, 2, 3, 2, 3, ResettableStack{Tuple{Int64, Int64, Int64}, false}(Tuple{Int64, Int64, Int64}[], 0, 0), ResettableStack{Tuple{Int64, Int64, Int64}, false}(Tuple{Int64, Int64, Int64}[], 0, 0), RSWM{Float64}(1.0e-15, :RSwM3), 0, 0, true, 0, RandomNumbers.Xorshifts.Xoroshiro128Plus(0xa31c9616241b8143, 0x84824147765d2431), true, true, true, nothing)
julia> NoiseProcess{Int64, 1, Int64, Int64, Int64, Vector{Int64}, typeof(DiffEqNoiseProcess.WHITE_NOISE_DIST), typeof(DiffEqNoiseProcess.WHITE_NOISE_BRIDGE), false, ResettableStack{Tuple{Int64, Int64, Int64}, false}, ResettableStack{Tuple{Int64, Int64, Int64}, false}, RSWM{Float64}, Nothing, RandomNumbers.Xorshifts.Xoroshiro128Plus}(DiffEqNoiseProcess.WHITE_NOISE_DIST, DiffEqNoiseProcess.WHITE_NOISE_BRIDGE, [1], [2], [2], [3], 1, 2, 3, 1, 2, 3, 2, 3, 2, 3, ResettableStack{Tuple{Int64, Int64, Int64}, false}(Tuple{Int64, Int64, Int64}[], 0, 0), ResettableStack{Tuple{Int64, Int64, Int64}, false}(Tuple{Int64, Int64, Int64}[], 0, 0), RSWM{Float64}(1.0e-15, :RSwM3), 0, 0, true, 0, RandomNumbers.Xorshifts.Xoroshiro128Plus(0xa31c9616241b8143, 0x84824147765d2431), true, true, true, nothing)
t: 1-element Vector{Int64}:
 1
u: 1-element Vector{Int64}:
 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants