Click or drag to resize

BaseMatrix Class

Represents a Base Matrix.
Inheritance Hierarchy

Namespace: DotNumerics.LinearAlgebra
Assembly: DWSIM.MathOps.DotNumerics (in DWSIM.MathOps.DotNumerics.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public abstract class BaseMatrix : IMatrix<double>
Request Example View Source

The BaseMatrix type exposes the following members.

Constructors
 NameDescription
Public methodBaseMatrix(Int32) Initializes a new instance of the BaseMatrix class of the given size.
Public methodBaseMatrix(Int32, Int32) Initializes a new instance of the BaseMatrix class of the given size.
Top
Properties
 NameDescription
Public propertyColumnCount Returns the number of columns.
Public propertyIsSquare Gets a value indicating if the matrix is square.
Public propertyItem Gets or set the value of a element of this matrix.
Public propertyRowCount Returns the number of rows.
Public propertyTraceReturns the trace of the matrix.
Top
Methods
 NameDescription
Public methodAdd Addition C=A+B
Protected methodCheckMatrixDimensionsCheck if size(this) == size(B)
Public methodCopyToArray Copy all elements of this matrix to a rectangular 2D array.
Public methodCopyToComplex 
Public methodCopyToJaggedArray Copy all elements of this matrix to a jagged array.
Public methodDeterminant Calculates the determinant of the matrix.
Public methodElementsAbs aij=Math.Abs(aij)
Public methodElementsSum Sum of elements =SUMij(A[i,j])
Public methodElemntsDiv Element-by-element division: aij = aij/bij
Public methodElemntsMult Element-by-element multiplication: aij = aij*bij
Public methodFrobeniusNormFrobenius norm
Public methodGetColumnArray Gets a column array of this matrix at the selected position.
Public methodGetColumnVector Gets a column vector of this matrix at the selected position.
Public methodGetColumnVectors Gets the column vectors of this matrix.
Public methodGetRowArray Gets a row array of this matrix at the selected position.
Public methodGetRowVector Gets a row vector of this matrix at the selected position.
Public methodGetRowVectors Gets the row vectors of this matrix.
Private methodHypotsqrt(a^2 + b^2) without under/overflow.
Public methodInverse Calculates the inverse of the matrix.
Public methodMatrixToString Returns the equivalent string representation of the matrix.
Public methodMatrixToString(String) Returns the equivalent string representation of the matrix.
Public methodMultiply(BaseMatrix) Matrix-Matrix multiplication, C=A*B
Public methodMultiply(Double) Scalar-matrix multiplication, C=s*A
Public methodMultiplyInplace In place scalar-matrix multiplication, A=s*A
Public methodNorm1 One Norm for the matrix.
Public methodNormInf Infinity Norm for the matrix.
Public methodSubtract Matrix subtraction, C=A-B
Public methodTranspose Transposed matrix.
Public methodUnaryMinusInplace In place unary minus -A
Top
Operators
 NameDescription
Public operatorStatic memberAddition(BaseMatrix, BaseMatrix) Matrix addition.
Public operatorStatic memberMultiply(BaseMatrix, BaseMatrix) Matrix multiplication.
Public operatorStatic memberSubtraction(BaseMatrix, BaseMatrix) Matrix subtraction.
Top
Fields
 NameDescription
Protected field_ColumnCount El numero de columnas
Protected field_Data Los datos de la matriz, los datos se almacenan en un un array unidimensional, Los elementos se almacenan por columnas, esto para que sean compatible con los Arrays de Fortran
Protected field_RowCount El numero de renglones
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumNames
(Defined by General)
Public Extension MethodIsValidDouble
(Defined by General)
Top
See Also