Skip to content

Commit a027058

Browse files
committed
issquare = true if first two dimensions match
1 parent c230a86 commit a027058

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/interface.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ has_adjoint(::Union{
186186
}
187187
) = true
188188

189-
issquare(L) = ndims(L) == 2 && isequal(size(L)...)
189+
issquare(L) = ndims(L) >= 2 && size(L, 1) == size(L, 2)
190+
issquare(::AbstractVector) = false
190191
issquare(::Union{
191192
# LinearAlgebra
192193
UniformScaling,

0 commit comments

Comments
 (0)