Skip to content

Commit a071e46

Browse files
committed
Update the name of the arguments in compute_tree_value
1 parent 773b491 commit a071e46

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/decompression.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -530,14 +530,14 @@ end
530530

531531
## TreeSetColoringResult
532532

533-
function compute_tree_value(is_star::Val{false}, B::AbstractMatrix, i::Integer, j::Integer, color::AbstractVector{<:Integer}, buffer_right_type::AbstractVector{<:Real})
533+
function compute_tree_value(is_star::Val{false}, B::AbstractMatrix, i::Integer, j::Integer, color::AbstractVector{<:Integer}, buffer::AbstractVector{<:Real})
534534
# The tree is not a star
535-
val = B[i, color[j]] - buffer_right_type[i]
536-
buffer_right_type[j] = buffer_right_type[j] + val
535+
val = B[i, color[j]] - buffer[i]
536+
buffer[j] = buffer[j] + val
537537
return val
538538
end
539539

540-
function compute_tree_value(is_star::Val{true}, B::AbstractMatrix, i::Integer, j::Integer, color::AbstractVector{<:Integer}, buffer_right_type::AbstractVector{<:Real})
540+
function compute_tree_value(is_star::Val{true}, B::AbstractMatrix, i::Integer, j::Integer, color::AbstractVector{<:Integer}, buffer::AbstractVector{<:Real})
541541
# The tree is a star (trivial or non-trivial)
542542
val = B[i, color[j]]
543543
return val

0 commit comments

Comments
 (0)