We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b750a5 commit fa3cd0fCopy full SHA for fa3cd0f
src/cholesky.jl
@@ -680,12 +680,10 @@ end
680
Base.propertynames(F::Cholesky, private::Bool=false) =
681
(:U, :L, :UL, (private ? fieldnames(typeof(F)) : ())...)
682
683
-function _equal(C1::Cholesky, C2::Cholesky)
+function Base.:(==)(C1::C, C2::D) where {C<:Cholesky, D<:Cholesky}
684
C1.uplo == C2.uplo || return false
685
C1.uplo == 'L' ? (C1.L == C2.L) : (C1.U == C2.U)
686
end
687
-Base.:(==)(C1::Cholesky, C2::Cholesky) = _equal(C1, C2)
688
-Base.:(==)(C1::T, C2::T) where {T<:Cholesky} = _equal(C1, C2)
689
690
function getproperty(C::CholeskyPivoted{T}, d::Symbol) where {T}
691
Cfactors = getfield(C, :factors)
0 commit comments