Show / Hide Table of Contents

Class DenseLUSolver<T>.ReorderedMatrix

A matrix that keeps everything synchronized for our solver.

Inheritance
object
DenseLUSolver<T>.ReorderedMatrix
Implements
IMatrix<T>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: SpiceSharp.Algebra.Solve
Assembly: SpiceSharp.dll
Syntax
protected class DenseLUSolver<T>.ReorderedMatrix : IMatrix<T>

Constructors

ReorderedMatrix(DenseLUSolver<T>)

Initializes a new instance of the DenseLUSolver<T>.ReorderedMatrix class.

Declaration
public ReorderedMatrix(DenseLUSolver<T> parent)
Parameters
Type Name Description
DenseLUSolver<T> parent

The parent.

Exceptions
Type Condition
ArgumentNullException

Thrown if parent is null.

Properties

this[MatrixLocation]

Gets or sets the value at the specified location.

Declaration
public T this[MatrixLocation location] { get; set; }
Parameters
Type Name Description
MatrixLocation location

The location.

Property Value
Type Description
T

The value.

this[int, int]

Gets or sets the value at the specified row and column.

Declaration
public T this[int row, int column] { get; set; }
Parameters
Type Name Description
int row

The row index.

int column

The column index.

Property Value
Type Description
T

The value.

Exceptions
Type Condition
ArgumentOutOfRangeException

Thrown if row or column is not positive.

Size

Gets the size of the matrix.

Declaration
public int Size { get; }
Property Value
Type Description
int

The matrix size.

Methods

Clear()

Clears the matrix of any elements. The size of the matrix becomes 0.

Declaration
public void Clear()

Reset()

Resets all elements in the matrix to their default value.

Declaration
public void Reset()

SwapColumns(int, int)

Swaps two columns in the matrix.

Declaration
public void SwapColumns(int column1, int column2)
Parameters
Type Name Description
int column1

The first column index.

int column2

The second column index.

Exceptions
Type Condition
ArgumentOutOfRangeException

Thrown if column1 or column2 is not greater than 0.

SwapRows(int, int)

Swaps two rows in the matrix.

Declaration
public void SwapRows(int row1, int row2)
Parameters
Type Name Description
int row1

The first row index.

int row2

The second row index.

Exceptions
Type Condition
ArgumentOutOfRangeException

Thrown if row1 or row2 is not greater than 0.

ToString()

Converts to string.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents this instance.

Overrides
object.ToString()

Implements

IMatrix<T>

Extension Methods

Utility.ThrowIfNull<T>(T, string)

See Also

PivotingSolver<M, V, T>
ISolver<T>
In this article
Back to top Generated by DocFX