TMatrix Class

Implementation of BaseEntry as a mathematical matrix or a vector.

  Tip

A vector is a TMatrix instance with a single column.

Definition

Namespace: SMath.Math.Numeric
Assembly: SMath.Math.Numeric (in SMath.Math.Numeric.dll) Version: 1.73.9126.0
C#
public sealed class TMatrix : BaseEntry
Inheritance
Object    BaseEntry    TMatrix

Constructors

TMatrix Constructs TMatrix instance with the specified elements.

Properties

HasUnits Determines whether current instance of BaseEntry contains units or not.
(Inherited from BaseEntry)
Item Provides access to the specified element of the matrix.
IzZero Determines whether current instance of BaseEntry is equal to zero or not.
(Overrides BaseEntry.IzZero)
Type Type of the BaseEntry which is implemented by a current instance of the object.
(Inherited from BaseEntry)
Units

Units of measurement for the expression component.

  Important

Every numeric expression component must have a value in Units. For dimensionless quantities like angles in radians the value of Units is set to 1.


(Inherited from BaseEntry)

Methods

Ainterp Performs interpolation by means of Akima spline.
Alg

Computes the cofactor of a square matrix for the specified row and column.

Cofactor for row i and column j is defined as minor for that row and column which is multiplied by (-1)^(i + j).

buildakimaspline Builds the table of coefficients for Akima spline.
buildcubicspline Builds the table of coefficients for cubic spline.
buildhermitespline Builds the table of coefficients for Hermite spline.
buildlinearspline Builds the table of coefficients for piecewise linear spline.
Cinterp Performs interpolation by means of cubic spline.
Clone Creates a copy of this instance.
(Overrides BaseEntry.Clone())
Col Returns a submatrix for the specified column of this matrix.
Com Adds value to this instance.
(Overrides BaseEntry.Com(BaseEntry))
Cos Computes cosine of this instance.
(Inherited from BaseEntry)
Cot Computes cotangent of this instance.
(Inherited from BaseEntry)
CSort Sorts the specified column of the matrix in ascending order.
Determinant Computes the determinant of the matrix.
Diag Builds a square matrix with elements of this vector on the main diagonal.
Div Divides this instance by value.
(Overrides BaseEntry.Div(BaseEntry))
eigenpolyroots Finds the polynomial roots using the eigenvalue method. The algorithm searches for the roots of a polynomial by searching for the eigenvalues of its companion matrix.
El Returns the specified element of the matrix.
EqualsDetermines whether the specified object is equal to the current object.
(Overrides Object.Equals(Object))
FFT Computes the nn-point discrete Fourier transform (DFT) of this dIn vector using a fast Fourier transform (FFT) algorithm.
GetHashCodeServes as the default hash function.
(Overrides Object.GetHashCode())
GetInverse Inversion of a general matrix.
GetLength Gets the specified dimension of the matrix.
GetTypeGets the Type of the current instance.
(Inherited from Object)
Gt Returns true if this instance is greater than value.
(Inherited from BaseEntry)
Im Returns a matrix which contains imaginary parts of elements of this matrix.
Length Gets the total number of elements in the matrix, i.e. the product of its dimensions.
Linterp Performs interpolation by means of piecewise linear spline.
Lt Returns true if this instance is less than value.
(Inherited from BaseEntry)
Max Finds the maximal element in the matrix.
Min Finds the minimal element in the matrix.
Minor

Computes the first minor of a square matrix for the specified row and column.

First minor is defined as determinant of a smaller square matrix which is cut down from the original matrix by removal of the specified row and column.

Mul Multiplies value by this instance.
(Overrides BaseEntry.Mul(BaseEntry))
Norm1

Computes the 1-norm of the matrix.

In order to compute the 1-norm, absolute values are summed down each column and after that the biggest answer is taken.

NormE Computes the Frobenius (Euclidean) norm of the matrix.
NormI

Computes the infinity-norm of the matrix.

In order to compute the infinity-norm, absolute values are summed along each row and after that the biggest answer is taken.

PolyRoots Finds the polynomial roots for this vector contaning polynomial coefficients. The eigenvalue method is used.
Pow Exponentiation operation.
(Overrides BaseEntry.Pow(BaseEntry))
Power Computes exponent with base equal to this and power equal to value.
Rank Computes the rank of the matrix.
Re Returns a matrix which contains real parts of elements of this matrix.
Reverse Flips the matrix vertically.
rmatrixluinverse Returns the inverse of the original matrix.
Round(BaseEntry) Rounds the value to the specified number of fractional digits.
(Inherited from BaseEntry)
Round(BaseEntry, TDouble) Rounds the value to the specified number of fractional digits using the specified rounding convention.
(Inherited from BaseEntry)
Row Returns a submatrix for the specified row of this matrix.
RSort Sorts the specified row of the matrix in ascending order.
Sin Computes sine of this instance.
(Inherited from BaseEntry)
Sort Sorts this vector in ascending order.
splineinterpolation Computes the interpolating spline.
Sub Subtracts value from this instance.
(Overrides BaseEntry.Sub(BaseEntry))
Submatrix Extracts a contiguous submatrix from the matrix.
Tan Computes tangent of this instance.
(Inherited from BaseEntry)
ToDouble Converts this instance to a Double value.
(Overrides BaseEntry.ToDouble())
ToString() Converts math expression component to string.
(Inherited from BaseEntry)
ToString(IResultOptions) Converts math expression component to string with options.
(Overrides BaseEntry.ToString(IResultOptions))
ToString(Int32, Int32, FractionsType, Boolean) Converts math expression component to string with options.
(Inherited from BaseEntry)
Obsolete.
ToString(Int32, Int32, FractionsType, Boolean, Boolean, MidpointRounding) Converts math expression component to string with options.
(Inherited from BaseEntry)
Obsolete.
ToTerms() Converts current expression component to the array of Term in reverse Polish notation (RPN).
(Inherited from BaseEntry)
ToTerms(IResultOptions) Converts current expression component to the array of Term in reverse Polish notation (RPN) with options.
(Overrides BaseEntry.ToTerms(IResultOptions))
ToTerms(Int32, Int32, FractionsType, Boolean) Converts current expression component to the array of Term in reverse Polish notation (RPN) with options.
(Inherited from BaseEntry)
Obsolete.
ToTerms(Int32, Int32, FractionsType, Boolean, Boolean, MidpointRounding) Converts current expression component to the array of Term in reverse Polish notation (RPN) with options.
(Inherited from BaseEntry)
Obsolete.
Trace Computes the trace of a square matrix.
Transpose Transposes the matrix.
Trunc Returns the integer part of this value.
(Inherited from BaseEntry)
VMinor Extracts the submatrix of a square matrix by removal of the specified row and column. This submatrix is used for computing the related first minor and cofactor.
VMultiplication Computes the cross product of two vectors in three-dimensional Euclidean space.

Operators

Addition(TComplex, TMatrix) Adds TMatrix object to TComplex object.
Addition(TMatrix, TComplex) Adds TComplex object to TMatrix object.
Addition(TMatrix, TMatrix) Adds two TMatrix objects.
Division(TComplex, TMatrix) Divides TComplex object by TMatrix object.
Division(TMatrix, TComplex) Divides TMatrix object by TComplex object.
Division(TMatrix, TMatrix) Divides two TMatrix objects.
Equality(TMatrix, TMatrix) Returns true if the operands are equal.
Implicit(Double to TMatrix) Provides implicit conversion from Double to TMatrix.
Implicit(TComplex to TMatrix) Provides implicit conversion from TComplex to TMatrix.
Implicit(TDouble to TMatrix) Provides implicit conversion from TDouble to TMatrix.
Implicit(TFraction to TMatrix) Provides implicit conversion from TFraction to TMatrix.
Implicit(TInfinity to TMatrix) Provides implicit conversion from TInfinity to TMatrix.
Implicit(TNumber to TMatrix) Provides implicit conversion from TNumber to TMatrix.
Inequality(TMatrix, TMatrix) Returns true if the operands are not equal.
Multiply(TComplex, TMatrix) Multiplies TMatrix object by TComplex object.
Multiply(TMatrix, TComplex) Multiplies TComplex object by TMatrix object.
Multiply(TMatrix, TMatrix) Multiplies two TMatrix objects.
Subtraction(TComplex, TMatrix) Subtracts TMatrix object from TComplex object.
Subtraction(TMatrix, TComplex) Subtracts TComplex object from TMatrix object.
Subtraction(TMatrix, TMatrix) Subtracts two TMatrix objects.

Fields

MachineEpsilon Precision for the eigenvalue method.
unit Elements of the matrix indexed by [row, column].

See Also