We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1493bac commit e970a26Copy full SHA for e970a26
src/tensors/tensor.jl
@@ -73,6 +73,7 @@ dim(t::TensorMap) = length(t.data)
73
#--------------------------------
74
# hook for mapping input types to storage types -- to be implemented in extensions
75
_tensormap_storagetype(::Type{A}) where {A <: AbstractArray} = _tensormap_storagetype(eltype(A))
76
+_tensormap_storagetype(::Type{A}) where {A <: DenseVector{<:Number}} = A
77
_tensormap_storagetype(::Type{T}) where {T <: Number} = Vector{T}
78
79
# utility type alias that makes constructors also work for type aliases that specify
0 commit comments