Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/implementation/abstractarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function checkcontractible(
B::AbstractArray, iB, conjB::Bool, label
)
size(A, iA) == size(B, iB) ||
throw(DimensionMismatch("Nonmatching dimensions for $label: $(size(A, iA)) != $(size(B, iB))"))
throw(DimensionMismatch(lazy"Nonmatching dimensions for $label: $(size(A, iA)) != $(size(B, iB))"))
return nothing
end

Expand Down Expand Up @@ -65,7 +65,7 @@ Check that `C` has `numind(pC)` indices and that `pC` constitutes a valid permut
"""
function argcheck_index2tuple(C::AbstractArray, pC::Index2Tuple)
return ndims(C) == numind(pC) && isperm(linearize(pC)) ||
throw(IndexError("invalid permutation of length $(ndims(C)): $pC"))
throw(IndexError(lazy"invalid permutation of length $(ndims(C)): $pC"))
end

"""
Expand All @@ -89,7 +89,7 @@ function argcheck_tensortrace(
C::AbstractArray, A::AbstractArray, p::Index2Tuple, q::Index2Tuple
)
ndims(C) == numind(p) ||
throw(IndexError("invalid selection of length $(ndims(C)): $p"))
throw(IndexError(lazy"invalid selection of length $(ndims(C)): $p"))
2 * numin(q) == 2 * numout(q) == ndims(A) - ndims(C) ||
throw(IndexError("invalid number of trace dimensions"))
argcheck_index2tuple(A, ((p[1]..., q[1]...), (p[2]..., q[2]...)))
Expand Down
Loading