Skip to content

Commit

Permalink
Undo conversion to Tuple on inds(::Tensor)
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Dec 26, 2024
1 parent 9ef2655 commit cf89330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tensor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Tensor(data::Number) = Tensor(fill(data))
Return the indices of the tensor in the order of the dimensions.
"""
inds(t::Tensor) = Tuple(t.inds)
inds(t::Tensor) = t.inds

function Base.copy(t::Tensor{T,N,<:SubArray{T,N}}) where {T,N}
data = copy(t.data)
Expand Down

0 comments on commit cf89330

Please sign in to comment.