Skip to content

Commit f43175f

Browse files
author
YoshihiroMichishita-SU
committed
update test and description
1 parent 216ae3c commit f43175f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/tensorci2.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function TensorCI2{ValueType}(
5454
end
5555

5656
"""
57-
Inherit Iset/Jset from the previous evaluation.
57+
Initialize with local pivots list(Iset/Jset).
5858
"""
5959
function TensorCI2{ValueType}(
6060
func::F,

test/test_tensorci2.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ import QuanticsGrids as QD
393393
end
394394

395395

396-
@testset "inherit_local_pivots" begin
396+
@testset "initialize_with_local_pivots_list" begin
397397
Random.seed!(1234)
398398

399399
N = 10
@@ -405,6 +405,8 @@ import QuanticsGrids as QD
405405
tci, ranks, errors = TCI.crossinterpolate2(Float64, f, localdims; maxbonddim=mbd)
406406
tci2 = TCI.TensorCI2{Float64}(f, localdims, tci.Iset, tci.Jset)
407407
@test tci2.maxsamplevalue == tci.maxsamplevalue
408+
@test tci2.Iset == tci.Iset
409+
@test tci2.Jset == tci.Jset
408410
end
409411

410412
@testset "crossinterpolate2_ttcache" begin

0 commit comments

Comments
 (0)