From 52f86198f244d1501fe0e9140e860b717ea72fcc Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Thu, 24 Oct 2024 10:20:05 +0000 Subject: [PATCH] Overload issingular for AbstractVectorOfArray Fixes https://github.com/SciML/DifferentialEquations.jl/issues/1050 --- src/vector_of_array.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vector_of_array.jl b/src/vector_of_array.jl index 9271eead..352d4ae4 100644 --- a/src/vector_of_array.jl +++ b/src/vector_of_array.jl @@ -792,6 +792,9 @@ end @inline Statistics.cor(VA::AbstractVectorOfArray; kwargs...) = cor(Array(VA); kwargs...) @inline Base.adjoint(VA::AbstractVectorOfArray) = Adjoint(VA) +# linear algebra +ArrayInterface.issingular(va::AbstractVectorOfArray) = ArrayInterface.issingular(Matrix(va)) + # make it show just like its data function Base.show(io::IO, m::MIME"text/plain", x::AbstractVectorOfArray) (println(io, summary(x), ':'); show(io, m, x.u))