Skip to content

Commit fa3cd0f

Browse files
Skip unnecessary method
Co-authored-by: Daniel Karrasch <[email protected]>
1 parent 1b750a5 commit fa3cd0f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/cholesky.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -680,12 +680,10 @@ end
680680
Base.propertynames(F::Cholesky, private::Bool=false) =
681681
(:U, :L, :UL, (private ? fieldnames(typeof(F)) : ())...)
682682

683-
function _equal(C1::Cholesky, C2::Cholesky)
683+
function Base.:(==)(C1::C, C2::D) where {C<:Cholesky, D<:Cholesky}
684684
C1.uplo == C2.uplo || return false
685685
C1.uplo == 'L' ? (C1.L == C2.L) : (C1.U == C2.U)
686686
end
687-
Base.:(==)(C1::Cholesky, C2::Cholesky) = _equal(C1, C2)
688-
Base.:(==)(C1::T, C2::T) where {T<:Cholesky} = _equal(C1, C2)
689687

690688
function getproperty(C::CholeskyPivoted{T}, d::Symbol) where {T}
691689
Cfactors = getfield(C, :factors)

0 commit comments

Comments
 (0)