Commit 5dbd4cd3 authored by Nguyen, Thien's avatar Nguyen, Thien

Make import/export ContractionSequence member functions public

Signed-off-by: Nguyen, Thien's avatarThien Nguyen <nguyentm@ornl.gov>
parent 1b4ddb77
......@@ -281,6 +281,12 @@ public:
/** Returns the list of tensor operations required for evaluating the tensor network. **/
std::list<std::shared_ptr<TensorOperation>> & getOperationList(const std::string & contr_seq_opt_name = "dummy");
/** Imports and caches an externally provided tensor contraction sequence. **/
void importContractionSequence(const std::list<ContrTriple> & contr_sequence);
/** Returns the currently stored tensor contraction sequence, if any. **/
const std::list<ContrTriple> & exportContractionSequence() const;
protected:
/** Emplaces a connected tensor into the tensor network. **/
......@@ -332,12 +338,6 @@ protected:
No contraction sequence is generated for tensor networks consisting of a single input tensor. **/
double determineContractionSequence(ContractionSeqOptimizer & contr_seq_optimizer);
/** Imports and caches an externally provided tensor contraction sequence. **/
void importContractionSequence(const std::list<ContrTriple> & contr_sequence);
/** Returns the currently stored tensor contraction sequence, if any. **/
const std::list<ContrTriple> & exportContractionSequence() const;
private:
/** Resets the output tensor in a finalized tensor network to a new
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment