Struct ndarray_einsum_beta::EinsumPath [−][src]
An EinsumPath
, 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 EinsumPath
.
Fields
contraction_order: ContractionOrder
The order in which tensors should be paired off and contracted with one another
steps: EinsumPathSteps<A>
The details of the contractions to be performed
Implementations
impl<A> EinsumPath<A>
[src]
pub fn new(sc: &SizedContraction) -> Self
[src]
pub fn from_path(contraction_order: &ContractionOrder) -> Self
[src]
impl<A> EinsumPath<A>
[src]
pub fn contract_operands(&self, operands: &[&dyn ArrayLike<A>]) -> ArrayD<A> where
A: Clone + LinalgScalar,
[src]
A: Clone + LinalgScalar,
Trait Implementations
Auto Trait Implementations
impl<A> !RefUnwindSafe for EinsumPath<A>
impl<A> !Send for EinsumPath<A>
impl<A> !Sync for EinsumPath<A>
impl<A> Unpin for EinsumPath<A>
impl<A> !UnwindSafe for EinsumPath<A>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
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.
pub 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>,