pub trait FindPath {
// Required methods
fn find_path(&mut self);
fn get_best_path(&self) -> &ContractionPath;
fn get_best_replace_path(&self) -> ContractionPath;
fn get_best_flops(&self) -> f64;
fn get_best_size(&self) -> f64;
}Expand description
An optimizer for finding a contraction path.
Required Methods§
Sourcefn get_best_path(&self) -> &ContractionPath
fn get_best_path(&self) -> &ContractionPath
Returns the best found contraction path in SSA format.
Sourcefn get_best_replace_path(&self) -> ContractionPath
fn get_best_replace_path(&self) -> ContractionPath
Returns the best found contraction path in ReplaceLeft format.
Sourcefn get_best_flops(&self) -> f64
fn get_best_flops(&self) -> f64
Returns the total op count of the best path found.
Sourcefn get_best_size(&self) -> f64
fn get_best_size(&self) -> f64
Returns the max memory (in number of elements) of the best path found.