The following tables list the members exposed by Matrix.
| Name | Description | |
|---|---|---|
| Matrix Constructor | Overloaded. |
| Name | Description | |
|---|---|---|
| Cols | Gets or sets the number of columns of the current matrix. | |
| Data | This property is used while serializing and deserializing the Matrix object and is not intended to be used directly from your code. | |
| DataPtr | Gets the address of the unmanaged (native) memory block containing the matrix's elements. | |
| IsSquare | Indicates whether this instance represents a square matrix. | |
| Item | Gets or sets a single matrix element. | |
| Rows | Gets or sets the number of rows of the current matrix. |
| Name | Description | |
|---|---|---|
| Add | Adds two matrices. | |
| ApplyFunction | Overloaded. Returns a new Matrix object, whose elements are the result of applying the specified function to the elements of this matrix. | |
| Clear | Sets the value of all the Matrix elements to zero. | |
| Clone | Creates a duplicate of this Matrix object. | |
| ColCorrelation | Returns the correlation coefficient between two columns of the current matrix. | |
| ColCovariance | Returns the covariance between two columns of the current matrix. | |
| ColsDotProduct | Returns the dot product between two columns of the Matrix object. | |
| ColSum | Returns the sum of the elements of the specified column. | |
| ColVector | Returns a new Vector object using the specified matrix column. | |
| Concatenate | Overloaded. Concatenates two matrices horizontally or vertically. | |
| CorrelationMatrix | Returns a matrix containing the correlation coefficients between the columns of the current matrix. | |
| CovarianceMatrix | Returns a matrix containing the covariances between the columns of the current matrix. | |
| DeleteColumn | Deletes a column of the current matrix. | |
| DeleteRow | Deletes a row of the current matrix. | |
| Determinant | Returns the value of the computed matrix determinant. | |
| Diagonal | Returns a Vector object containing the main diagonal of the current matrix. | |
| Divide | Overloaded. Performs matrix right division. | |
| Equals | Returns a value indicating whether this Matrix object is equal to another matrix. | |
| FillRandom | Overloaded. Fills the Matrix object with random values ranging from 0 to 10, rounded to zero decimal places. | |
| GetHashCode | ||
| GetObjectData | Implements the ISerializable interface and returns the data needed to serialize the Matrix class. | |
| HadamardProduct | Returns the Hadamard product of two matrices. | |
| HasINFs | Returns a value indicating whether the current matrix contains any elements that evaluate to negative or positive infinity.. | |
| HasNaNs | Returns a value indicating whether the current matrix contains any elements that evaluate to NaN values. | |
| InsertColumn | Inserts a column in the current matrix at the specified position. | |
| InsertRow | Inserts a row in the current matrix at the specified position. | |
| Inverse | Computes the inverse of the matrix and returns a reference to it. | |
| IsEqual | Overloaded. Returns a value indicating whether this Matrix is equal to another matrix within a default tolerance. | |
| IsFinite | Returns a value indicating whether the current matrix contains any elements that evaluate either to NaN value or to negative or positive infinity. | |
| IsSymmetric | Overloaded. Returns a value indicating whether this matrix is symmetric within the specified tolerance. | |
| LDivide | Performs matrix left division. | |
| Multiply | Overloaded. 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 | |
| Negate | Returns the negation of the matrix. | |
| Norm | Returns the matrix norm. | |
| NormalizeCols | Normalizes the columns of the current matrix according to the specified mode. | |
| NormalizeRows | Normalizes the rows of the current matrix according to the specified mode. | |
| Plus | Returns a copy of the matrix. | |
| PseudoInverse | Overloaded. Returns the Moore-Penrose inverse (pseudoinverse) of the matrix. | |
| Rank | Returns the matrix rank. | |
| ReorderCols | Reorders matrix columns according to the specified order. | |
| ReorderRows | Reorders matrix rows according to the specified order. | |
| Resize | Resizes matrix preserving its content. | |
| RowsDotProduct | Returns the dot product between two rows of the Matrix object. | |
| RowSum | Returns the sum of the elements of the specified row. | |
| RowVector | Returns a new Vector object using the specified matrix row. | |
| SetColumn | Overloaded. Sets all elements of a matrix column using the contents on a vector. | |
| SetRow | Overloaded. Sets all elements of a matrix row using the contents on a vector. | |
| Solve | Solves a system of linear equations. | |
| SortCols | Overloaded. Sorts the columns of the current matrix by the elements of its first row in ascending order. | |
| SortRows | Overloaded. Sorts the rows of the current matrix by the elements of its first column in ascending order. | |
| SubMatrix | Returns a subset of the current matrix. | |
| Subtract | Subtracts a matrix from another matrix. | |
| SwapCols | Swaps two matrix columns. | |
| SwapRows | Swaps two matrix rows. | |
| Times | Overloaded. Multiplies the current matrix by another matrix and returns the result. | |
| ToArray | Converts current matrix to an array. | |
| ToCMatrix | Converts the current Matrix to a CMatrix object. | |
| ToString | Overloaded. 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. | |
| Trace | Returns the sum of the elements of the main diagonal. | |
| Transpose | Returns the transpose of the matrix. |
| Adds two matrices. | |
| Overloaded. Performs matrix right division. | |
| Tests whether two Matrix objects represent equal matrices. | |
| Overloaded. | |
| Tests whether two Matrix objects represent non equal matrices. | |
| Overloaded. Multiplies matrices. | |
| Subtracts two matrices. | |
| Negates the matrix. | |
| Returns a copy of the matrix. |