Skip to content

Commit

Permalink
add empty getindex
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsignorelli committed Apr 2, 2024
1 parent b2239dd commit eca82e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/getset.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ end

# To override Base number.jl
getindex(t::Union{ComplexTPS, TPS}, idx::Integer) = lowget(t, idx, nothing, nothing)
getindex(t::Union{ComplexTPS, TPS}) = t

# Flat index
function lowget(t::Union{TPS,ComplexTPS}, i::Union{Nothing,Integer}, param::Union{Nothing,Integer}, params::Nothing)
Expand Down

0 comments on commit eca82e3

Please sign in to comment.