Skip to content

Commit fefae9d

Browse files
Format
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 6c61fe5 commit fefae9d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

NDTensors/src/arraytensor/arraytensor.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ const MatrixStorageTensor{T,S,I} = Tensor{T,2,S,I} where {S<:MatrixStorage{T}}
2222
const MatrixOrArrayStorageTensor{T,S,I} =
2323
Tensor{T,N,S,I} where {N,S<:MatrixOrArrayStorage{T}}
2424

25-
Tensor(storage::MatrixOrArrayStorageTensor, inds::Tuple) = Tensor(NeverAlias(), storage, inds)
25+
function Tensor(storage::MatrixOrArrayStorageTensor, inds::Tuple)
26+
return Tensor(NeverAlias(), storage, inds)
27+
end
2628

2729
function Tensor(as::AliasStyle, storage::MatrixOrArrayStorage, inds::Tuple)
2830
return Tensor{eltype(storage),length(inds),typeof(storage),typeof(inds)}(

0 commit comments

Comments
 (0)