Skip to content

Commit e970a26

Browse files
committed
try handle PtrArrays
1 parent 1493bac commit e970a26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tensors/tensor.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ dim(t::TensorMap) = length(t.data)
7373
#--------------------------------
7474
# hook for mapping input types to storage types -- to be implemented in extensions
7575
_tensormap_storagetype(::Type{A}) where {A <: AbstractArray} = _tensormap_storagetype(eltype(A))
76+
_tensormap_storagetype(::Type{A}) where {A <: DenseVector{<:Number}} = A
7677
_tensormap_storagetype(::Type{T}) where {T <: Number} = Vector{T}
7778

7879
# utility type alias that makes constructors also work for type aliases that specify

0 commit comments

Comments
 (0)