Skip to content

Commit

Permalink
Format test/matrices.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
juliohm committed Oct 9, 2024
1 parent 688fcd2 commit 7785f6c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/matrices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
@test all(<(0 / u"m"), diag(R))

# base transition rate matrix
R = GeoStatsFunctions.baseratematrix([1,2,3]u"m", [0.2,0.5,0.3])
@test R == [ -1/1 0.5/(1-0.2)/1 0.3/(1-0.2)/1
0.2/(1-0.5)/2 -1/2 0.3/(1-0.5)/2
0.2/(1-0.3)/3 0.5/(1-0.3)/3 -1/3]u"m^-1"
R = GeoStatsFunctions.baseratematrix([1.0, 2.0, 3.0]u"m", [0.2, 0.5, 0.3])
@test R == [-1/1.0 0.5/(1-0.2)/1.0 0.3/(1-0.2)/1.0;
0.2/(1-0.5)/2.0 -1/2.0 0.3/(1-0.5)/2.0;
0.2/(1-0.3)/3.0 0.5/(1-0.3)/3.0 -1/3.0]u"m^-1"
end

0 comments on commit 7785f6c

Please sign in to comment.