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, Ix2>
where A: Copy + Num + 'static, S: Data<Elem = A>, ArrayBase<S, Ix2>: Clone + Dot<ArrayBase<S, Ix2>, Output = Array<A, Ix2>>,

Source§

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

Source§

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

Implementors§