Class MarkowitzSearchStrategy<T>
A template for a search strategy for finding pivots. It is used for implementing the strategy outlined by Markowitz.
Inheritance
MarkowitzSearchStrategy<T>
Implements
Inherited Members
Namespace: SpiceSharp.Algebra.Solve
Assembly: SpiceSharp.dll
Syntax
public abstract class MarkowitzSearchStrategy<T> : ICloneable<MarkowitzSearchStrategy<T>>
Type Parameters
Name | Description |
---|---|
T | The base value type. |
Methods
Clone()
Clones the instance.
Declaration
public abstract MarkowitzSearchStrategy<T> Clone()
Returns
Type | Description |
---|---|
MarkowitzSearchStrategy<T> | The cloned instance. |
FindPivot(Markowitz<T>, ISparseMatrix<T>, int, int)
Find a pivot in a matrix.
Declaration
public abstract Pivot<ISparseMatrixElement<T>> FindPivot(Markowitz<T> markowitz, ISparseMatrix<T> matrix, int eliminationStep, int max)
Parameters
Type | Name | Description |
---|---|---|
Markowitz<T> | markowitz | The Markowitz pivot strategy. |
ISparseMatrix<T> | matrix | The matrix. |
int | eliminationStep | The current elimination step. |
int | max | The maximum row/column index. |
Returns
Type | Description |
---|---|
Pivot<ISparseMatrixElement<T>> | The pivot element, or null if no pivot was found. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
ArgumentOutOfRangeException | Thrown if |