.NET Matrix Library
Matrix Class Members
See Also  Properties  Methods  Send comments on this topic


The following tables list the members exposed by Matrix.

Public Constructors

 NameDescription
public ConstructorMatrix ConstructorOverloaded.   
Top

Public Properties

 NameDescription
public PropertyColsGets or sets the number of columns of the current matrix.  
public PropertyDataThis property is used while serializing and deserializing the Matrix object and is not intended to be used directly from your code.  
public PropertyDataPtrGets the address of the unmanaged (native) memory block containing the matrix's elements.  
public PropertyIsSquareIndicates whether this instance represents a square matrix.  
public PropertyItemGets or sets a single matrix element.  
public PropertyRowsGets or sets the number of rows of the current matrix.  
Top

Public Methods

 NameDescription
public Methodstatic (Shared in Visual Basic)AddAdds two matrices.  
public MethodApplyFunctionOverloaded. Returns a new Matrix object, whose elements are the result of applying the specified function to the elements of this matrix.  
public MethodClearSets the value of all the Matrix elements to zero.  
public MethodCloneCreates a duplicate of this Matrix object.  
public MethodColCorrelationReturns the correlation coefficient between two columns of the current matrix.  
public MethodColCovarianceReturns the covariance between two columns of the current matrix.  
public MethodColsDotProductReturns the dot product between two columns of the Matrix object.  
public MethodColSumReturns the sum of the elements of the specified column.  
public MethodColVectorReturns a new Vector object using the specified matrix column.  
public Methodstatic (Shared in Visual Basic)ConcatenateOverloaded. Concatenates two matrices horizontally or vertically.  
public MethodCorrelationMatrixReturns a matrix containing the correlation coefficients between the columns of the current matrix.  
public MethodCovarianceMatrixReturns a matrix containing the covariances between the columns of the current matrix.  
public MethodDeleteColumnDeletes a column of the current matrix.  
public MethodDeleteRowDeletes a row of the current matrix.  
public MethodDeterminantReturns the value of the computed matrix determinant.  
public MethodDiagonalReturns a Vector object containing the main diagonal of the current matrix.  
public Methodstatic (Shared in Visual Basic)DivideOverloaded. Performs matrix right division.  
public MethodEqualsReturns a value indicating whether this Matrix object is equal to another matrix.  
public MethodFillRandomOverloaded. Fills the Matrix object with random values ranging from 0 to 10, rounded to zero decimal places.  
public MethodGetHashCode  
public MethodGetObjectDataImplements the ISerializable interface and returns the data needed to serialize the Matrix class.  
public Methodstatic (Shared in Visual Basic)HadamardProductReturns the Hadamard product of two matrices.  
public MethodHasINFsReturns a value indicating whether the current matrix contains any elements that  evaluate to negative or positive infinity..  
public MethodHasNaNsReturns a value indicating whether the current matrix contains any elements that  evaluate to NaN values.  
public MethodInsertColumnInserts a column in the current matrix at the specified position.  
public MethodInsertRowInserts a row in the current matrix at the specified position.  
public MethodInverseComputes the inverse of the matrix and returns a reference to it.  
public MethodIsEqualOverloaded. Returns a value indicating whether this Matrix is equal to another matrix within a default tolerance.  
public MethodIsFiniteReturns a value indicating whether the current matrix contains any elements that  evaluate either to NaN value or to negative or positive infinity.  
public MethodIsSymmetricOverloaded. Returns a value indicating whether this matrix is symmetric within the specified tolerance.  
public Methodstatic (Shared in Visual Basic)LDividePerforms matrix left division.  
public Methodstatic (Shared in Visual Basic)MultiplyOverloaded. 

Computes a scalar-matrix-matrix product and adds the result to a scalar-matrix product. The operation is defined as:

C= alpha * op(A) * op(B) + beta *C

 
public Methodstatic (Shared in Visual Basic)NegateReturns the negation of the matrix.  
public MethodNormReturns the matrix norm.  
public MethodNormalizeCols

Normalizes the columns of the current matrix according to the specified mode.

 
public MethodNormalizeRows

Normalizes the rows of the current matrix according to the specified mode.

 
public Methodstatic (Shared in Visual Basic)PlusReturns a copy of the matrix.  
public MethodPseudoInverseOverloaded. Returns the Moore-Penrose inverse (pseudoinverse) of the matrix.  
public MethodRankReturns the matrix rank.  
public MethodReorderColsReorders matrix columns according to the specified order.  
public MethodReorderRowsReorders matrix rows according to the specified order.  
public MethodResizeResizes matrix preserving its content.  
public MethodRowsDotProductReturns the dot product between two rows of the Matrix object.  
public MethodRowSumReturns the sum of the elements of the specified row.  
public MethodRowVectorReturns a new Vector object using the specified matrix row.  
public MethodSetColumnOverloaded. Sets all elements of a matrix column using the contents on a vector.  
public MethodSetRowOverloaded. Sets all elements of a matrix row using the contents on a vector.  
public MethodSolveSolves a system of linear equations.  
public MethodSortColsOverloaded. Sorts the columns of the current matrix by the elements of its first row in ascending order.  
public MethodSortRowsOverloaded. Sorts the rows of the current matrix by the elements of its first column in ascending order.  
public MethodSubMatrixReturns a subset of the current matrix.  
public Methodstatic (Shared in Visual Basic)SubtractSubtracts a matrix from another matrix.  
public MethodSwapColsSwaps two matrix columns.  
public MethodSwapRowsSwaps two matrix rows.  
public MethodTimesOverloaded. 

Multiplies the current matrix by another matrix and returns the result.

 
public MethodToArrayConverts current matrix to an array.  
public MethodToCMatrixConverts the current Matrix to a CMatrix object.  
public MethodToStringOverloaded. Converts this instance of Matrix to a formatted string using the default values for format string, separator, left and right borders, and end of line characters.  
public MethodTraceReturns the sum of the elements of the main diagonal.  
public MethodTransposeReturns the transpose of the matrix.  
Top

Public Operators

public Operator Addition Adds two matrices.
public Operator Division Overloaded. Performs matrix right division.
public Operator Equality Tests whether two Matrix objects represent equal matrices. 
public Operator Implicit Type Conversion Overloaded.  
public Operator Inequality Tests whether two Matrix objects represent non equal matrices.
public Operator Multiplication Overloaded. Multiplies matrices.
public Operator Subtraction Subtracts two matrices.
public Operator Unary Negation Negates the matrix.
public Operator Unary Plus Returns a copy of the matrix.
Top

See Also

.NET Matrix Library Documentation