Skip to content

Commit

Permalink
Merge pull request #59 from ArnoStrouwen/patch-1
Browse files Browse the repository at this point in the history
Remove dead tuplejoin code
  • Loading branch information
ChrisRackauckas authored Jan 21, 2022
2 parents 97030dc + 9b55da9 commit ab3de92
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/koopman.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ abstract type AbstractExpectationAlgorithm <: DiffEqBase.DEAlgorithm end
struct Koopman <:AbstractExpectationAlgorithm end
struct MonteCarlo <: AbstractExpectationAlgorithm end

# tuplejoin from https://discourse.julialang.org/t/efficient-tuple-concatenation/5398/8
@inline tuplejoin(x) = x
@inline tuplejoin(x, y) = (x..., y...)
@inline tuplejoin(x, y, z...) = (x..., tuplejoin(y, z...)...)

_rand(x::T) where T <: Sampleable = rand(x)
_rand(x) = x

Expand Down

0 comments on commit ab3de92

Please sign in to comment.