Struct ndarray_linalg::TruncatedEig[][src]

pub struct TruncatedEig<A: Scalar> {
    pub constraints: Option<Array2<A>>,
    // some fields omitted
}

Truncated eigenproblem solver

This struct wraps the LOBPCG algorithm and provides convenient builder-pattern access to parameter like maximal iteration, precision and constraint matrix. Furthermore it allows conversion into a iterative solver where each iteration step yields a new eigenvalue/vector pair.

Fields

constraints: Option<Array2<A>>

Implementations

impl<A: Float + Scalar + ScalarOperand + Lapack + PartialOrd + Default> TruncatedEig<A>[src]

pub fn new(problem: Array2<A>, order: Order) -> TruncatedEig<A>[src]

pub fn precision(self, precision: f32) -> Self[src]

pub fn maxiter(self, maxiter: usize) -> Self[src]

pub fn orthogonal_to(self, constraints: Array2<A>) -> Self[src]

pub fn precondition_with(self, preconditioner: Array2<A>) -> Self[src]

pub fn decompose(&self, num: usize) -> LobpcgResult<A>[src]

Trait Implementations

impl<A: Float + Scalar + ScalarOperand + Lapack + PartialOrd + Default> IntoIterator for TruncatedEig<A>[src]

type Item = (Array1<A>, Array2<A>)

The type of the elements being iterated over.

type IntoIter = TruncatedEigIterator<A>

Which kind of iterator are we turning this into?

Auto Trait Implementations

impl<A> RefUnwindSafe for TruncatedEig<A> where
    A: RefUnwindSafe

impl<A> Send for TruncatedEig<A> where
    A: Send

impl<A> Sync for TruncatedEig<A> where
    A: Sync

impl<A> Unpin for TruncatedEig<A>

impl<A> UnwindSafe for TruncatedEig<A> where
    A: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,