FindPath

Trait FindPath 

Source
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§

Source

fn find_path(&mut self)

Finds a contraction path.

Source

fn get_best_path(&self) -> &ContractionPath

Returns the best found contraction path in SSA format.

Source

fn get_best_replace_path(&self) -> ContractionPath

Returns the best found contraction path in ReplaceLeft format.

Source

fn get_best_flops(&self) -> f64

Returns the total op count of the best path found.

Source

fn get_best_size(&self) -> f64

Returns the max memory (in number of elements) of the best path found.

Implementors§