Skip to content

Commit b7511a6

Browse files
committed
propagate_inbounds
1 parent f504db5 commit b7511a6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/tensors/indexmanipulations.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ the permutation `(p₁..., reverse(p₂)...)` should constitute a cyclic permuta
175175
176176
See [`transpose`](@ref) for creating a new tensor and [`add_transpose!`](@ref) for a more general version.
177177
"""
178-
function LinearAlgebra.transpose!(
178+
@propagate_inbounds function LinearAlgebra.transpose!(
179179
tdst::AbstractTensorMap, tsrc::AbstractTensorMap, (p₁, p₂)::Index2Tuple = _transpose_indices(tsrc)
180180
)
181181
return add_transpose!(tdst, tsrc, (p₁, p₂), One(), Zero())
@@ -229,7 +229,7 @@ case of a transposition that only changes the number of in- and outgoing indices
229229
230230
See [`repartition`](@ref) for creating a new tensor.
231231
"""
232-
function repartition!(tdst::AbstractTensorMap{S}, tsrc::AbstractTensorMap{S}) where {S}
232+
@propagate_inbounds function repartition!(tdst::AbstractTensorMap{S}, tsrc::AbstractTensorMap{S}) where {S}
233233
numind(tsrc) == numind(tdst) ||
234234
throw(ArgumentError("tsrc and tdst should have an equal amount of indices"))
235235
all_inds = (codomainind(tsrc)..., reverse(domainind(tsrc))...)
@@ -499,7 +499,7 @@ See also [`transpose`](@ref), [`transpose!`](@ref), [`add_permute!`](@ref), [`ad
499499
return @inbounds add_transform!(tdst, tsrc, p, transformer, α, β, backend...)
500500
end
501501

502-
function add_transform!(
502+
@propagate_inbounds function add_transform!(
503503
tdst::AbstractTensorMap, tsrc::AbstractTensorMap, p::Index2Tuple, transformer,
504504
α::Number, β::Number, backend::AbstractBackend...
505505
)

0 commit comments

Comments
 (0)