Show / Hide Table of Contents

Class DenseLUSolver<T>.ReorderedVector

A vector that keeps everything synchronized for our solver.

Inheritance
object
DenseLUSolver<T>.ReorderedVector
Implements
IVector<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>.ReorderedVector : IVector<T>

Constructors

ReorderedVector(DenseLUSolver<T>)

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

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

The parent.

Exceptions
Type Condition
ArgumentNullException

Thrown if parent is null.

Properties

this[int]

Gets or sets the value at the specified index.

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

The index.

Property Value
Type Description
T

The value.

Exceptions
Type Condition
ArgumentOutOfRangeException

Thrown if index is negative.

Length

Gets the length of the vector.

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

The length.

Methods

Clear()

Clears all elements in the vector. The size of the vector becomes 0.

Declaration
public void Clear()

CopyTo(IVector<T>)

Copies the contents of the vector to another one.

Declaration
public void CopyTo(IVector<T> target)
Parameters
Type Name Description
IVector<T> target

The target vector.

Exceptions
Type Condition
ArgumentNullException

Thrown if target is null.

ArgumentException

Thrown if target does not have the same length as this vector.

Reset()

Resets all elements in the vector to their default value.

Declaration
public void Reset()

SwapElements(int, int)

Swaps two elements in the vector.

Declaration
public void SwapElements(int index1, int index2)
Parameters
Type Name Description
int index1

The first index.

int index2

The second index.

Exceptions
Type Condition
ArgumentOutOfRangeException

Thrown if index1 or index2 is negative.

ToString()

Converts to string.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents this instance.

Overrides
object.ToString()

Implements

IVector<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