[−][src]Struct ndarray_einsum_beta::PathContraction
A PathContraction
, returned by einsum_path
, represents a fully-prepared plan to perform a tensor contraction.
It contains the order in which the input tensors should be contracted with one another or with one of the previous intermediate results,
and for each step in the path, how to perform the pairwise contraction. For example, two tensors might be contracted
with one another by computing the Hadamard (element-wise) product of the tensors, while a different pair might be contracted
by performing a matrix multiplication. The contractions that will be performed are fully specified within the PathContraction
.
Fields
contraction_order: ContractionOrder
The order in which tensors should be paired off and contracted with one another
steps: PathContractionSteps<A>
The details of the contractions to be performed
Methods
impl<A> PathContraction<A>
[src]
pub fn new(sc: &SizedContraction) -> Self
[src]
pub fn from_path(contraction_order: &ContractionOrder) -> Self
[src]
Trait Implementations
impl<A> PathContractor<A> for PathContraction<A>
[src]
fn contract_operands(&self, operands: &[&dyn ArrayLike<A>]) -> ArrayD<A> where
A: Clone + LinalgScalar,
[src]
A: Clone + LinalgScalar,
impl<A> Debug for PathContraction<A>
[src]
Auto Trait Implementations
impl<A> !Send for PathContraction<A>
impl<A> !Sync for PathContraction<A>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,