diff --git a/src/tensors/abstracttensor.jl b/src/tensors/abstracttensor.jl index 4db965d6..78e2fb0e 100644 --- a/src/tensors/abstracttensor.jl +++ b/src/tensors/abstracttensor.jl @@ -156,7 +156,7 @@ Return all indices of the domain of a tensor. See also [`codomainind`](@ref) and [`allind`](@ref). """ function domainind(::Type{T}) where {T<:AbstractTensorMap} - return ntuple(n -> N₁ + n, N₂) + return ntuple(n -> numout(T) + n, numin(T)) end domainind(t::AbstractTensorMap) = domainind(typeof(t))