Skip to content

Commit

Permalink
Fix missing definition eltype
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Nov 1, 2023
1 parent d93aa2c commit f833a4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tensors/abstracttensor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ i.e. a tensor map with only a non-trivial output space.
const AbstractTensor{S<:IndexSpace,N} = AbstractTensorMap{S,N,0}

# tensor characteristics
Base.eltype(::Union{T,Type{T}}) where {T<:AbstractTensorMap} = scalartype(T)
spacetype(::Type{<:AbstractTensorMap{S}}) where {S<:IndexSpace} = S
sectortype(::Type{<:AbstractTensorMap{S}}) where {S<:IndexSpace} = sectortype(S)
function InnerProductStyle(::Type{<:AbstractTensorMap{S}}) where {S<:IndexSpace}
Expand Down

0 comments on commit f833a4b

Please sign in to comment.