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
In #106 we didn't think we'd need this (because why not just use Diagonal rather than BlockDiagonal(Diagonal)), but it came up in one of the nightly tests. Since we can support it relatively easily, I suggest we do
julia> s1 =BlockDiagonal([Diagonal(rand(5))])
5×5 BlockDiagonal{Float64, Diagonal{Float64, Vector{Float64}}}:0.3737790.00.00.00.00.00.3153020.00.00.00.00.00.2669550.00.00.00.00.00.6862520.00.00.00.00.00.0014181
julia>cholesky(s1)
ERROR: MethodError: no method matching BlockDiagonal(::Vector{Vector{Float64}})
Closest candidates are:BlockDiagonal(::BlockDiagonal) at ~/JuliaEnvs/GPForecasting.jl/dev/BlockDiagonals/src/blockdiagonal.jl:20BlockDiagonal(::Vector{V}) where {T, V<:AbstractMatrix{T}} at ~/JuliaEnvs/GPForecasting.jl/dev/BlockDiagonals/src/blockdiagonal.jl:16
Stacktrace:
[1] cholesky(B::BlockDiagonal{Float64, Diagonal{Float64, Vector{Float64}}})
@ BlockDiagonals ~/JuliaEnvs/GPForecasting.jl/dev/BlockDiagonals/src/linalg.jl:108
[2] top-level scope
@ REPL[80]:1
The text was updated successfully, but these errors were encountered:
In #106 we didn't think we'd need this (because why not just use
Diagonal
rather thanBlockDiagonal(Diagonal))
, but it came up in one of the nightly tests. Since we can support it relatively easily, I suggest we doThe text was updated successfully, but these errors were encountered: