Skip to main content

ContractionPathResult

Trait ContractionPathResult 

Source
pub trait ContractionPathResult {
    // Required methods
    fn ssa_path(&self) -> &ContractionPath;
    fn replace_path(&self) -> ContractionPath;
    fn flops(&self) -> f64;
    fn size(&self) -> f64;
}
Expand description

The result of running a contraction Pathfinder.

Required Methods§

Source

fn ssa_path(&self) -> &ContractionPath

Returns the best found contraction path in SSA format.

Source

fn replace_path(&self) -> ContractionPath

Returns the best found contraction path in ReplaceLeft format.

Source

fn flops(&self) -> f64

Returns the total op count of the best path found.

Source

fn size(&self) -> f64

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

Implementors§