-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot convert
an object of type Matrix{Float32}
to an object of type UpperTriangular{Float32, Matrix{Float32}}
when testing PDMats
#1198
Comments
This is caused by the fact that Base.kron(A::PDMat, B::PDMat) = PDMat(kron(A.mat, B.mat), Cholesky(kron(A.chol.U, B.chol.U), 'U', A.chol.info)) we get from struct PDMat{T<:Real,S<:AbstractMatrix{T}} <: AbstractPDMat{T}
mat::S
chol::Cholesky{T,S}
... forces |
(b) makes sense to me. I doubt there will always be a correspondence between the matrix types, and the other options seem like patches to fix this specific case. |
I prefer something like (c). Unwrapping the triangular wrapper after |
Just to be clear: both options (b) and (c) would need to done within PDMats.jl. I'll open an issue and hope somebody picks it up. |
Cannot
convert an object of type Matrix{Float32} to an object of type UpperTriangular{Float32, Matrix{Float32}}
when testing PDMatsconvert
an object of type Matrix{Float32}
to an object of type UpperTriangular{Float32, Matrix{Float32}}
when testing PDMats
This issue can be closed, the problem in PDMats is fixed on the master branch. |
PkgEval log: https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/by_hash/7825364_vs_d63aded/PDMats.primary.log
The text was updated successfully, but these errors were encountered: