Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ TensorCrossInterpolation = "b261b2ec-6378-4871-b32e-9173bb050604"

[compat]
BitIntegers = "0.3.5"
QuanticsGrids = "0.3"
QuanticsGrids = "0.3, 0.4"
TensorCrossInterpolation = "0.9.16"
julia = "1.6"

Expand Down
2 changes: 1 addition & 1 deletion src/tciinterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function quanticscrossinterpolate(
) where {ValueType,n}
R = grid.R

qlocaldimensions = if grid.unfoldingscheme === :interleaved
qlocaldimensions = if grid.unfoldingscheme === :interleaved || grid.unfoldingscheme === :serial || grid.unfoldingscheme === :meander
fill(2, n * R)
else
fill(2^n, R)
Expand Down
12 changes: 9 additions & 3 deletions test/test_tciinterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import QuanticsGrids as QG

@testset "quanticscrossinterpolate" for unfoldingscheme in [
:interleaved,
:fused
:fused,
:serial,
:meander
]
f(x, y) = 0.1 * x^2 + 0.01 * y^3 - pi * x * y + 5
xvals = range(-3, 2; length=32)
Expand Down Expand Up @@ -48,7 +50,9 @@ end

@testset "quanticscrossinterpolate with DiscretizedGrid" for unfoldingscheme in [
:interleaved,
:fused
:fused,
:serial,
:meander
]
R = 5
f(x, y) = 0.1 * x^2 + 0.01 * y^3 - pi * x * y + 5
Expand All @@ -71,7 +75,9 @@ end

@testset "quanticscrossinterpolate with InherentDiscreteGrid" for unfoldingscheme in [
:interleaved,
:fused
:fused,
:serial,
:meander
]
R = 3
Random.seed!(1234)
Expand Down
Loading