Skip to content

Commit ca65944

Browse files
committed
Fix broken tests
1 parent 4fbd48c commit ca65944

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

NDTensors/src/blocksparse/contract_generic.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ function contract_blockoffsets(
1111
indsR,
1212
labelsR,
1313
)
14-
N1 = ndims(boffs1)
15-
N2 = ndims(boffs2)
14+
N1 = length(blocktype(boffs1))
15+
N2 = length(blocktype(boffs2))
1616
NR = length(labelsR)
1717
ValNR = ValLength(labelsR)
1818
labels1_to_labels2, labels1_to_labelsR, labels2_to_labelsR = contract_labels(

NDTensors/src/blocksparse/contract_sequential.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ function contract_blockoffsets(
99
indsR,
1010
labelsR,
1111
)
12-
N1 = length(keytype(boffs1))
13-
N2 = length(keytype(boffs2))
12+
N1 = length(blocktype(boffs1))
13+
N2 = length(blocktype(boffs2))
1414
NR = length(labelsR)
1515
ValNR = ValLength(labelsR)
1616
labels1_to_labels2, labels1_to_labelsR, labels2_to_labelsR = contract_labels(

0 commit comments

Comments
 (0)