Show / Hide Table of Contents

Class Element<T>

A description of a matrix element.

Inheritance
object
Element<T>
SparseMatrix<T>.Element
SparseVector<T>.Element
ParallelSolver<T>.BridgeElement
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: SpiceSharp.Algebra
Assembly: SpiceSharp.dll
Syntax
public class Element<T>
Type Parameters
Name Description
T

The base type.

Properties

Addition

Generic addition.

Declaration
public static Func<T, T, T> Addition { get; set; }
Property Value
Type Description
Func<T, T, T>

Subtraction

Generic subtraction.

Declaration
public static Func<T, T, T> Subtraction { get; set; }
Property Value
Type Description
Func<T, T, T>

Value

Gets or sets the value of the matrix element.

Declaration
public T Value { get; set; }
Property Value
Type Description
T

The value.

Methods

Add(T)

Adds the specified value to the element.

Declaration
public void Add(T value)
Parameters
Type Name Description
T value

The value.

Subtract(T)

Subtracts the specified value from the element.

Declaration
public void Subtract(T value)
Parameters
Type Name Description
T value

The value.

ToString()

Converts to string.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Extension Methods

Utility.ThrowIfNull<T>(T, string)
In this article
Back to top Generated by DocFX