Skip to content

Commit

Permalink
remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Jan 16, 2025
1 parent f1fa513 commit d0c4005
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/utility/utility.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,6 @@ function _can_unambiguously_braid(sp::VectorSpace)
return true
end

function inplace_add!(a::Union{AbstractTensorMap,Nothing},
b::Union{AbstractTensorMap,Nothing})
isnothing(a) && isnothing(b) && return nothing
isnothing(a) && return b
isnothing(b) && return a
return axpy!(true, a, b)
end

#=
map every element in the tensormap to dfun(E)
allows us to create random tensormaps for any storagetype
Expand Down Expand Up @@ -136,11 +128,6 @@ function tensorexpr(name::Symbol, indout, indin)
return Expr(:typed_vcat, name, Expr(:row, indout...), Expr(:row, indin...))
end

# check all elements are equal -> only defined in 1.8+
@static if !isdefined(Base, :allequal)
allequal(itr) = isempty(itr) ? true : all(isequal(first(itr)), itr)
end

function check_length(a, b...)
L = length(a)
all(==(L), length.(b)) || throw(ArgumentError("lengths must match"))
Expand Down

0 comments on commit d0c4005

Please sign in to comment.