From 75f72442e94db360a99f00ba4eca8a3f620e9489 Mon Sep 17 00:00:00 2001 From: "Bowen S. Zhu" Date: Sat, 28 Sep 2024 22:03:13 -0400 Subject: [PATCH] Add `Base` module identifier to `length(::SymArray)` method [skip ci] --- src/arrays.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arrays.jl b/src/arrays.jl index 558dd754c..508862faa 100644 --- a/src/arrays.jl +++ b/src/arrays.jl @@ -548,7 +548,7 @@ function eltype(A::Union{Arr, SymArray}) return T end -function length(A::Union{Arr, SymArray}) +function Base.length(A::Union{Arr, SymArray}) s = shape(unwrap(A)) s === Unknown() && error("length of $A not known") return prod(length, s)