Skip to content

Commit ec2496e

Browse files
authored
Fix boxing in TrivialTensorizer next (#315)
1 parent a6d7953 commit ec2496e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Multivariate/TensorSpace.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function next(a::TrivialTensorizer{d}, iterator_tuple) where {d}
5151
(block, (j, iterator, iter_state)), (i,tot) = iterator_tuple
5252

5353

54-
@inline function check_block_finished()
54+
@inline function check_block_finished(j, iterator, block)
5555
if iterator === nothing
5656
return true
5757
end
@@ -63,8 +63,7 @@ function next(a::TrivialTensorizer{d}, iterator_tuple) where {d}
6363

6464
ret = reverse(block)
6565

66-
if check_block_finished() # end of new block
67-
66+
if check_block_finished(j, iterator, block) # end of new block
6867
# set up iterator for new block
6968
current_sum = sum(block)
7069
iterator = multiexponents(d, current_sum+1-d)

0 commit comments

Comments
 (0)