MatrixDecompositionFactory
Helpers & Utilities · AiDotNet.Factories
A factory class that creates matrix decomposition objects for solving linear algebra problems.
For Beginners
Matrix decomposition is a way of breaking down a complex matrix into simpler components that are easier to work with mathematically. It’s like factoring a number (e.g., 12 = 3 × 4), but for matrices.
How It Works
This factory helps you create different types of matrix decompositions without needing to know their internal implementation details. Think of it like ordering a specific tool from a catalog - you just specify what you need, and the factory provides it.
Methods
| Method | Summary |
|---|---|
IMatrixDecomposition<T> CreateDecomposition(Matrix<T> matrix, MatrixDecompositionType decompositionType) |
Creates a matrix decomposition of the specified type for the given matrix. |
MatrixDecompositionType GetDecompositionType(IMatrixDecomposition<T> decomposition) |
Gets the decomposition type from an existing matrix decomposition object. |