Skip to content

Commit

Permalink
test corrected de leeuw implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
kdomino committed Feb 21, 2018
1 parent 5887c3b commit 3f533c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/comptime_leeuw_cums.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ using JLD
using ArgParse
#import Cumulants: mom2cums

include("testfunctions/leeuw_cumulants.jl")
include("testfunctions/leeuw_cumulants_no_nested_func.jl")

"""
comptime(data::Matrix{Float}, f::Function, m::Int)
Expand Down
6 changes: 4 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import SymmetricTensors: indices

include("testfunctions/pyramidcumulants.jl")
include("testfunctions/mom2cum.jl")
include("testfunctions/leeuw_cumulants.jl")
include("testfunctions/leeuw_cumulants_no_nested_func.jl")

srand(42)
x = randn(10,4);
Expand Down Expand Up @@ -133,7 +133,9 @@ c1, c2, c3, c4, c5, c6, c7, c8 = cumulants(data[:, 1:2], 8, 2)
@test cm4 convert(Array, c4)
@test cm5 convert(Array, c5)
@test cm6 convert(Array, c6)
@test first_four_cumulants(data[:, 1:2])[:c4] convert(Array, c4)
llc = first_four_cumulants(data[:, 1:2])
@test llc[:c3] convert(Array, c3)
@test llc[:c4] convert(Array, c4)
end

cn1, cn2, cn3, cn4, cn5, cn6, cn7, cn8 = pyramidcumulants(data[:, 1:2], 8)
Expand Down

0 comments on commit 3f533c3

Please sign in to comment.