pub struct ArpackStorage { /* private fields */ }Expand description
Preallocated working memory for repeated ARPACK runs
(igraph_arpack_storage_t), freed on drop (igraph_arpack_storage_destroy).
Pass it to arpack_rssolve/arpack_rnsolve to avoid reallocating
the workspace for every eigenproblem of order at most maxn using at most
maxncv Lanczos/Arnoldi vectors (remember that ncv = 0 lets igraph pick
a value up to n).
Binds igraph_arpack_storage_init.
Implementations§
Source§impl ArpackStorage
impl ArpackStorage
Sourcepub fn new(maxn: usize, maxncv: usize, symmetric: bool) -> Result<Self>
pub fn new(maxn: usize, maxncv: usize, symmetric: bool) -> Result<Self>
Allocates storage for problems of order at most maxn, with at most
maxncv Lanczos/Arnoldi vectors; symmetric selects the layout for
arpack_rssolve (true) or arpack_rnsolve (false; such a
storage also works for symmetric problems).
Sourcepub fn is_symmetric(&self) -> bool
pub fn is_symmetric(&self) -> bool
Whether the storage was allocated for symmetric problems only.
Trait Implementations§
Source§impl Debug for ArpackStorage
impl Debug for ArpackStorage
Source§impl Drop for ArpackStorage
impl Drop for ArpackStorage
impl Send for ArpackStorage
Auto Trait Implementations§
impl !Sync for ArpackStorage
impl Freeze for ArpackStorage
impl RefUnwindSafe for ArpackStorage
impl Unpin for ArpackStorage
impl UnsafeUnpin for ArpackStorage
impl UnwindSafe for ArpackStorage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more