Skip to content

Commit

Permalink
Revert "LazyString in LinearAlgebra.checksquare error message (Ju…
Browse files Browse the repository at this point in the history
…liaLang#53961)"

This reverts commit feceefe.
  • Loading branch information
KristofferC authored and Drvi committed Jun 7, 2024
1 parent 1324f63 commit a01666f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/LinearAlgebra/src/LinearAlgebra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,14 @@ julia> LinearAlgebra.checksquare(A, B)
"""
function checksquare(A)
m,n = size(A)
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))"))
m
end

function checksquare(A...)
sizes = Int[]
for a in A
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))"))
push!(sizes, size(a,1))
end
return sizes
Expand Down

0 comments on commit a01666f

Please sign in to comment.