Skip to content

Commit

Permalink
Update test/utils.jl
Browse files Browse the repository at this point in the history
Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
  • Loading branch information
davibarreira and devmotion authored Jun 6, 2021
1 parent 7743f07 commit d5d57c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ Random.seed!(100)
μsupp = [rand(m) for i in 1:n]
νsupp = [rand(m) for i in 1:n]
μprobs = normalize!(rand(n), 1)
μ = discretemeasure(μsupp, μprobs)
ν = discretemeasure(νsupp)
μ = OptimalTransport.discretemeasure(μsupp, μprobs)
ν = OptimalTransport.discretemeasure(νsupp)
# check if it vectors are indeed probabilities
@test isprobvec.p)
@test isprobvec(probs(μ))
Expand Down

0 comments on commit d5d57c7

Please sign in to comment.