Trace

Trait Trace 

Source
pub trait Trace {
    type Output;

    // Required method
    fn trace(self) -> Self::Output;
}
Expand description

Represents types for which the trace can be computed.

Required Associated Types§

Source

type Output

The type returned by the trace.

Required Methods§

Source

fn trace(self) -> Self::Output

The trace (typically, the sum of the eigenvalues, or the sum of the diagonal elements $\sum_i A_{ii}$).

§Example
// TODO

Implementations on Foreign Types§

Source§

impl<T: Clone + Zero> Trace for &Array2<T>

Source§

type Output = T

Source§

fn trace(self) -> Self::Output

Source§

impl<T: Clone + Zero> Trace for Array2<T>

Source§

type Output = T

Source§

fn trace(self) -> Self::Output

Implementors§