Trait MatPow

Source
pub trait MatPow<Rhs = Self> {
    type Output;

    // Required method
    fn matpow(&self, rhs: Rhs) -> Self::Output;
}
Expand description

The MatPow trait defines an interface for computing the exponentiation of a matrix.

Required Associated Types§

Required Methods§

Source

fn matpow(&self, rhs: Rhs) -> Self::Output

raise the tensor to the power of the right-hand side, producing some Output

Implementations on Foreign Types§

Source§

impl<A, S> MatPow<i32> for ArrayBase<S, Dim<[usize; 2]>>
where A: Copy + Num + 'static, S: Data<Elem = A>, ArrayBase<S, Dim<[usize; 2]>>: Clone + Dot<ArrayBase<S, Dim<[usize; 2]>>, Output = ArrayBase<OwnedRepr<A>, Dim<[usize; 2]>>>,

Source§

type Output = ArrayBase<OwnedRepr<A>, Dim<[usize; 2]>>

Source§

fn matpow( &self, rhs: i32, ) -> <ArrayBase<S, Dim<[usize; 2]>> as MatPow<i32>>::Output

Implementors§