Click or drag to resize

Matrix Class

Represents a general Matrix.
Inheritance Hierarchy
SystemObject
  DotNumerics.LinearAlgebraBaseMatrix
    DotNumerics.LinearAlgebraMatrix

Namespace: DotNumerics.LinearAlgebra
Assembly: DWSIM.MathOps.DotNumerics (in DWSIM.MathOps.DotNumerics.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public sealed class Matrix : BaseMatrix
Request Example View Source

The Matrix type exposes the following members.

Constructors
 NameDescription
Public methodMatrix(Double) Initializes a new instance of the Matrix class using a array.
Public methodMatrix(Int32) Initializes a new instance of the Matrix class of the given size.
Public methodMatrix(Int32, Int32) Initializes a new instance of the Matrix class of the given size.
Top
Properties
 NameDescription
Public propertyColumnCount Returns the number of columns.
(Inherited from BaseMatrix)
Public propertyIsSquare Gets a value indicating if the matrix is square.
(Inherited from BaseMatrix)
Public propertyItem Gets or set the value of a element of this matrix.
(Inherited from BaseMatrix)
Public propertyRowCount Returns the number of rows.
(Inherited from BaseMatrix)
Public propertyTraceReturns the trace of the matrix.
(Inherited from BaseMatrix)
Top
Methods
 NameDescription
Public methodAdd Addition C=A+B
(Inherited from BaseMatrix)
Public methodAddInplace In place addition A=A+B
Public methodClone Creates a copy of the matrix.
Public methodCopyToArray Copy all elements of this matrix to a rectangular 2D array.
(Inherited from BaseMatrix)
Public methodCopyToComplex
(Inherited from BaseMatrix)
Public methodCopyToJaggedArray Copy all elements of this matrix to a jagged array.
(Inherited from BaseMatrix)
Public methodDeterminant Calculates the determinant of the matrix.
(Inherited from BaseMatrix)
Public methodElementsAbs aij=Math.Abs(aij)
(Inherited from BaseMatrix)
Public methodElementsSum Sum of elements =SUMij(A[i,j])
(Inherited from BaseMatrix)
Public methodElemntsDiv Element-by-element division: aij = aij/bij
(Inherited from BaseMatrix)
Public methodElemntsMult Element-by-element multiplication: aij = aij*bij
(Inherited from BaseMatrix)
Public methodFrobeniusNormFrobenius norm
(Inherited from BaseMatrix)
Public methodGetColumnArray Gets a column array of this matrix at the selected position.
(Inherited from BaseMatrix)
Public methodGetColumnVector Gets a column vector of this matrix at the selected position.
(Inherited from BaseMatrix)
Public methodGetColumnVectors Gets the column vectors of this matrix.
(Inherited from BaseMatrix)
Public methodGetRowArray Gets a row array of this matrix at the selected position.
(Inherited from BaseMatrix)
Public methodGetRowVector Gets a row vector of this matrix at the selected position.
(Inherited from BaseMatrix)
Public methodGetRowVectors Gets the row vectors of this matrix.
(Inherited from BaseMatrix)
Public methodInverse Calculates the inverse of the matrix.
(Inherited from BaseMatrix)
Public methodMatrixToString Returns the equivalent string representation of the matrix.
(Inherited from BaseMatrix)
Public methodMatrixToString(String) Returns the equivalent string representation of the matrix.
(Inherited from BaseMatrix)
Public methodMultiply(BaseMatrix) Matrix-Matrix multiplication, C=A*B
(Inherited from BaseMatrix)
Public methodMultiply(Double) Scalar-matrix multiplication, C=s*A
(Inherited from BaseMatrix)
Public methodMultiplyInplace In place scalar-matrix multiplication, A=s*A
(Inherited from BaseMatrix)
Public methodNorm1 One Norm for the matrix.
(Inherited from BaseMatrix)
Public methodNormInf Infinity Norm for the matrix.
(Inherited from BaseMatrix)
Public methodStatic memberRandom(Int32, Int32)Generate a matrix with random elements
Public methodStatic memberRandom(Int32, Int32, Int32)Generate a matrix with random elements
Public methodSubtract Matrix subtraction, C=A-B
(Inherited from BaseMatrix)
Public methodSubtractInplace In place matrix subtraction, A=A-B
Public methodTranspose Transposed matrix.
(Inherited from BaseMatrix)
Public methodUnaryMinus Unary minus.
Public methodUnaryMinusInplace In place unary minus -A
(Inherited from BaseMatrix)
Top
Operators
 NameDescription
Public operatorStatic memberAddition(Matrix, Matrix) Matrix addition.
Public operatorStatic memberMultiply(Double, Matrix) Scalar-Matrix multiplication.
Public operatorStatic memberMultiply(Matrix, Double) Scalar-Matrix multiplication.
Public operatorStatic memberSubtraction(Matrix, Matrix) Matrix subtraction.
Public operatorStatic memberUnaryNegation(Matrix) Unary minus.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumNames
(Defined by General)
Public Extension MethodIsValidDouble
(Defined by General)
Top
See Also