You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: https://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.6.2 (2017-12-13 18:08 UTC)
_/ |\__'_|_|_|\__'_| |
|__/ | x86_64-pc-linux-gnu
julia> using PDMats
julia> x = rand(2,2)
2×2 Array{Float64,2}:
0.667854 0.660297
0.92969 0.775099
julia> y = PDMat(x'x)
PDMats.PDMat{Float64,Array{Float64,2}}(2, [1.31035 1.16158; 1.16158 1.03677], Base.LinAlg.Cholesky{Float64,Array{Float64,2}} with factor:
[1.14471 1.01474; 0.0 0.0840556])
julia> Matrix(y)
ERROR: MethodError: Cannot `convert` an object of type PDMats.PDMat{Float64,Array{Float64,2}} to an object of type Array{T,2} where T
This may have arisen from a call to the constructor Array{T,2} where T(...),
since type constructors fall back to convert methods.
Stacktrace:
[1] Array{T,2} where T(::PDMats.PDMat{Float64,Array{Float64,2}}) at ./sysimg.jl:77
The text was updated successfully, but these errors were encountered:
Yeah, it's because we dropped 0.6 support at the same time as changing full to Matrix to mimic Base. full should still work on 0.6 and should work with a depwarn on 0.7.
The text was updated successfully, but these errors were encountered: