We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
LazyString
LinearAlgebra.checksquare
1 parent 97b0571 commit b05a4f2Copy full SHA for b05a4f2
stdlib/LinearAlgebra/src/LinearAlgebra.jl
@@ -238,14 +238,14 @@ julia> LinearAlgebra.checksquare(A, B)
238
"""
239
function checksquare(A)
240
m,n = size(A)
241
- m == n || throw(DimensionMismatch(lazy"matrix is not square: dimensions are $(size(A))"))
+ m == n || throw(DimensionMismatch("matrix is not square: dimensions are $(size(A))"))
242
m
243
end
244
245
function checksquare(A...)
246
sizes = Int[]
247
for a in A
248
- size(a,1)==size(a,2) || throw(DimensionMismatch(lazy"matrix is not square: dimensions are $(size(a))"))
+ size(a,1)==size(a,2) || throw(DimensionMismatch("matrix is not square: dimensions are $(size(a))"))
249
push!(sizes, size(a,1))
250
251
return sizes
0 commit comments