Skip to content

Commit

Permalink
update interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
GiggleLiu committed Feb 7, 2022
1 parent 78a68a1 commit f78c767
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/interfaces.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
export simplify_code, optimize_code, GreedyMethod, KaHyParBipartite, SABipartite, TreeSA, MergeGreedy, MergeVectors, uniformsize

abstract type CodeSimplifier end

"""
MergeGreedy <: CodeSimplifier
MergeGreedy(; threshhold=-1e-12)
Contraction code simplifier (in order to reduce the time of calling optimizers) that
merges tensors greedily if the space complexity of merged tensors is reduced (difference smaller than the `threshhold`).
"""
Base.@kwdef struct MergeGreedy <: CodeSimplifier
threshhold::Float64=-1e-12
end

"""
MergeVectors <: CodeSimplifier
MergeVectors()
Contraction code simplifier (in order to reduce the time of calling optimizers) that merges vectors to closest tensors.
"""
struct MergeVectors <: CodeSimplifier end

"""
Expand Down

0 comments on commit f78c767

Please sign in to comment.