Interface ISparseSolver<T>
An ISolver<T> that uses sparse elements internally.
Inherited Members
Namespace: SpiceSharp.Algebra
Assembly: SpiceSharp.dll
Syntax
public interface ISparseSolver<T> : ISolver<T>, IParameterSetCollection, IParameterSet
Type Parameters
Name | Description |
---|---|
T | The base value type. |
Methods
FindElement(MatrixLocation)
Finds the element at the specified location in the matrix.
Declaration
Element<T> FindElement(MatrixLocation location)
Parameters
Type | Name | Description |
---|---|---|
MatrixLocation | location | The location. |
Returns
Type | Description |
---|---|
Element<T> | The element if it exists; otherwise |
FindElement(int)
Finds the element at the specified position in the right-hand side vector.
Declaration
Element<T> FindElement(int row)
Parameters
Type | Name | Description |
---|---|---|
int | row | The row index. |
Returns
Type | Description |
---|---|
Element<T> | The element if it exists; otherwise |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | Thrown if |
GetElement(MatrixLocation)
Gets the element at the specified location in the matrix. A new element is created if it doesn't exist yet.
Declaration
Element<T> GetElement(MatrixLocation location)
Parameters
Type | Name | Description |
---|---|---|
MatrixLocation | location | The location. |
Returns
Type | Description |
---|---|
Element<T> | The matrix element. |
GetElement(int)
Gets the element at the specified position in the right-hand side vector. A new element is created if it doesn't exist yet.
Declaration
Element<T> GetElement(int row)
Parameters
Type | Name | Description |
---|---|---|
int | row | The row. |
Returns
Type | Description |
---|---|
Element<T> | The vector element. |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException | Thrown if |
RemoveElement(MatrixLocation)
Removes a matrix element at the specified location.
Declaration
bool RemoveElement(MatrixLocation location)
Parameters
Type | Name | Description |
---|---|---|
MatrixLocation | location | The location. |
Returns
Type | Description |
---|---|
bool |
|
RemoveElement(int)
Removes a right-hand side vector element.
Declaration
bool RemoveElement(int row)
Parameters
Type | Name | Description |
---|---|---|
int | row | The row. |
Returns
Type | Description |
---|---|
bool |
|