Skip to content

Commit f4288be

Browse files
committed
Dumb thing that fixes #100
1 parent b2eddcf commit f4288be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/similar_convert_copy.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ function Base.convert(::Type{ComponentArray{T1,N,A1,Ax1}}, x::ComponentArray{T2,
5555
end
5656
Base.convert(::Type{<:Array}, x::ComponentArray) = convert(Array, getdata(x))
5757

58+
Base.convert(::Type{Cholesky{T1,Matrix{T1}}}, x::Cholesky{T2,<:ComponentArray}) where {T1,T2} = Cholesky(Matrix{T1}(x.factors), x.uplo, x.info)
59+
5860

5961
# Conversion to from ComponentArray to NamedTuple (note, does not preserve numeric types of
6062
# original NamedTuple)

0 commit comments

Comments
 (0)