pub struct MatrixAnalyzer {
pub analysis_algorithms: Vec<AnalysisAlgorithm>,
pub pattern_recognition: PatternRecognition,
}Expand description
Matrix analyzer
Fields§
§analysis_algorithms: Vec<AnalysisAlgorithm>§pattern_recognition: PatternRecognitionImplementations§
Source§impl MatrixAnalyzer
impl MatrixAnalyzer
Sourcepub fn new() -> Self
pub fn new() -> Self
Constructs an analyzer with structure+sparsity algorithms and a fresh pattern-recognition registry.
Sourcepub fn initialize(&mut self) -> Result<(), LinearAlgebraError>
pub fn initialize(&mut self) -> Result<(), LinearAlgebraError>
Initializes the inner pattern-recognition library (populates the pattern/hint maps).
Sourcepub fn analyze_matrix(
&mut self,
matrix: &Matrix,
) -> Result<MatrixAnalysis, LinearAlgebraError>
pub fn analyze_matrix( &mut self, matrix: &Matrix, ) -> Result<MatrixAnalysis, LinearAlgebraError>
Analyze a matrix: detect all structural patterns, compute sparsity, and determine recommended algorithms from optimization hints.
Sourcepub fn detect_structure(&self, matrix: &Matrix) -> Vec<MatrixPattern>
pub fn detect_structure(&self, matrix: &Matrix) -> Vec<MatrixPattern>
Detect ALL applicable structural patterns in the matrix. Uses a tolerance of 1e-10 for floating-point comparisons.
Auto Trait Implementations§
impl Freeze for MatrixAnalyzer
impl RefUnwindSafe for MatrixAnalyzer
impl Send for MatrixAnalyzer
impl Sync for MatrixAnalyzer
impl Unpin for MatrixAnalyzer
impl UnsafeUnpin for MatrixAnalyzer
impl UnwindSafe for MatrixAnalyzer
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more