Skip to content

Commit 07205ae

Browse files
authored
Apply suggestions from code review
1 parent 121caf7 commit 07205ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/decompression.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ struct JoinCompressed{R<:Real,M1<:AbstractMatrix{R},M2<:AbstractMatrix{R}} <:
749749
symmetric_to_column::Vector{Int}
750750
end
751751

752-
function Base.getindex(B::JoinCompressed, i::Int, j::Int)
752+
function Base.getindex(B::JoinCompressed{R}, i::Int, j::Int) where R
753753
(; n, Br, Bc, symmetric_to_row, symmetric_to_column) = B
754754
if i n
755755
return Br[symmetric_to_row[j], i]
@@ -758,7 +758,7 @@ function Base.getindex(B::JoinCompressed, i::Int, j::Int)
758758
end
759759
end
760760

761-
function Base.getindex(B::JoinCompressed, k::Int)
761+
function Base.getindex(B::JoinCompressed{R}, k::Int) where R
762762
dim = B.m + B.n
763763
j, i = divrem(k - 1, dim)
764764
return getindex(B, i + 1, j + 1)

0 commit comments

Comments
 (0)