Skip to content

Commit 6ea0ccf

Browse files
committed
Revert "replace CholType -> Cholesky"
This reverts commit 3eeecba.
1 parent 29dd9be commit 6ea0ccf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pdmat.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ Full positive definite matrix together with a Cholesky factorization object.
44
struct PDMat{T<:Real,S<:AbstractMatrix} <: AbstractPDMat{T}
55
dim::Int
66
mat::S
7-
chol::Cholesky{T,S}
7+
chol::CholType{T,S}
88

9-
PDMat{T,S}(d::Int,m::AbstractMatrix{T},c::Cholesky{T,S}) where {T,S} = new{T,S}(d,m,c)
9+
PDMat{T,S}(d::Int,m::AbstractMatrix{T},c::CholType{T,S}) where {T,S} = new{T,S}(d,m,c)
1010
end
1111

12-
function PDMat(mat::AbstractMatrix,chol::Cholesky{T,S}) where {T,S}
12+
function PDMat(mat::AbstractMatrix,chol::CholType{T,S}) where {T,S}
1313
d = size(mat, 1)
1414
size(chol, 1) == d ||
1515
throw(DimensionMismatch("Dimensions of mat and chol are inconsistent."))
@@ -18,7 +18,7 @@ end
1818

1919
PDMat(mat::Matrix) = PDMat(mat, cholesky(mat))
2020
PDMat(mat::Symmetric) = PDMat(Matrix(mat))
21-
PDMat(fac::Cholesky) = PDMat(Matrix(fac), fac)
21+
PDMat(fac::CholType) = PDMat(Matrix(fac), fac)
2222

2323
### Conversion
2424
Base.convert(::Type{PDMat{T}}, a::PDMat) where {T<:Real} = PDMat(convert(AbstractArray{T}, a.mat))

0 commit comments

Comments
 (0)