pub struct MatrixPowerConfig {
pub max_nnz: Option<usize>,
pub reuse_structure: bool,
pub power: usize,
}Expand description
Configuration for sparse matrix power computation.
Fields§
§max_nnz: Option<usize>Maximum allowed nnz in any intermediate or final result. If exceeded, the computation aborts with an error.
reuse_structure: boolWhether to attempt reusing symbolic (sparsity) structure between successive multiplications when the structure matches.
power: usizeThe exponent k in A^k.
Trait Implementations§
Source§impl Clone for MatrixPowerConfig
impl Clone for MatrixPowerConfig
Source§fn clone(&self) -> MatrixPowerConfig
fn clone(&self) -> MatrixPowerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MatrixPowerConfig
impl RefUnwindSafe for MatrixPowerConfig
impl Send for MatrixPowerConfig
impl Sync for MatrixPowerConfig
impl Unpin for MatrixPowerConfig
impl UnsafeUnpin for MatrixPowerConfig
impl UnwindSafe for MatrixPowerConfig
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