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§
Sourcefn find_path(&mut self, tensor: &CompositeTensor) -> Self::Result
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.