Skip to main content

Pathfinder

Trait Pathfinder 

Source
pub trait Pathfinder {
    type Result: ContractionPathResult;

    // Required method
    fn find_path(&mut self, tensor: &CompositeTensor) -> Self::Result;
}
Expand description

An optimizer for finding a contraction path.

Required Associated Types§

Required Methods§

Source

fn find_path(&mut self, tensor: &CompositeTensor) -> Self::Result

Finds a contraction path for the tensor.

Uses &mut self to allow for internal state such as caching.

Implementors§