Skip to content

Commit acb25ab

Browse files
committed
Update algorithms.jl
1 parent 59c575d commit acb25ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/algorithms.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,5 +541,5 @@ macro check_size(x, sz, size = :size)
541541
end
542542

543543
# Check equality of two `TruncationStrategy`s
544-
isequal(t1::T, t2::T) where {T <: TruncationStrategy} = all(isequal(getfield(t1, f), getfield(t2, f)) for f in fieldnames(T))
545-
isequal(t1::T1, t2::T2) where {T1, T2 <: TruncationStrategy} = false
544+
Base.:(==)(t1::T, t2::T) where {T <: TruncationStrategy} = all(getfield(t1, f) == getfield(t2, f) for f in fieldnames(T))
545+
Base.:(==)(t1::T1, t2::T2) where {T1 <: TruncationStrategy, T2 <: TruncationStrategy} = false

0 commit comments

Comments
 (0)