Class SparseComplexSolver
Class for solving real matrices
Inheritance
Implements
Inherited Members
Namespace: SpiceSharp.Algebra
Assembly: SpiceSharp.dll
Syntax
public class SparseComplexSolver : SparseLUSolver<Complex>, ISparsePivotingSolver<Complex>, ISparseSolver<Complex>, IPivotingSolver<ISparseMatrix<Complex>, ISparseVector<Complex>, Complex>, ISolver<Complex>, IParameterSetCollection, IParameterSet, IParameterized<Markowitz<Complex>>
Constructors
SparseComplexSolver()
Initializes a new instance of the SparseComplexSolver class.
Declaration
public SparseComplexSolver()
Methods
BackwardSubstitute(IVector<Complex>)
Applies backward substitution on a factored matrix and the intermediate vector.
Declaration
public override void BackwardSubstitute(IVector<Complex> solution)
Parameters
Type | Name | Description |
---|---|---|
IVector<Complex> | solution | The solution vector. |
Overrides
BackwardSubstituteTransposed(IVector<Complex>)
Applies backward substitution on the adjoint matrix and the intermediate vector.
Declaration
public override void BackwardSubstituteTransposed(IVector<Complex> solution)
Parameters
Type | Name | Description |
---|---|---|
IVector<Complex> | solution | The solution vector. |
Overrides
ComputeDegenerateContribution(int)
Computes a contribution for degenerate solvers (Degeneracy is larger than 0). Used when solving submatrices separately.
Declaration
public override Complex ComputeDegenerateContribution(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index. |
Returns
Type | Description |
---|---|
Complex | Returns the contribution. |
Overrides
ComputeDegenerateContributionTransposed(int)
Computes a contribution of the transposed solving for degenerate solvers (Degeneracy is larger than 0). Used when solving submatrices separately.
Declaration
public override Complex ComputeDegenerateContributionTransposed(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index. |
Returns
Type | Description |
---|---|
Complex | Returns the contribution. |
Overrides
Eliminate(ISparseMatrixElement<Complex>)
Eliminates the matrix right and below the pivot.
Declaration
protected override void Eliminate(ISparseMatrixElement<Complex> pivot)
Parameters
Type | Name | Description |
---|---|---|
ISparseMatrixElement<Complex> | pivot | The pivot element. |
Overrides
Exceptions
Type | Condition |
---|---|
AlgebraException | Thrown if the pivot is |
ForwardSubstitute(IVector<Complex>)
Applies forward substitution on a factored matrix and right-hand side vector.
Declaration
public override void ForwardSubstitute(IVector<Complex> solution)
Parameters
Type | Name | Description |
---|---|---|
IVector<Complex> | solution | The solution vector. |
Overrides
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
AlgebraException | Thrown if the solver is not factored yet. |
ArgumentException | Thrown if |
ForwardSubstituteTransposed(IVector<Complex>)
Applies forward substitution on the adjoint matrix and right-hand side vector.
Declaration
public override void ForwardSubstituteTransposed(IVector<Complex> solution)
Parameters
Type | Name | Description |
---|---|---|
IVector<Complex> | solution | The solution vector. |
Overrides
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
AlgebraException | Thrown if the solver is not factored yet. |
ArgumentException | Thrown if |