ProductName  

The CMatrix object represents matrices with complex number elements. The following tables list all of its properties and methods.

Properties

AsArrayR, AsArrayI Return / set the real or imaginary parts of matrix elements to / from an array.
Cols Sets / returns the number of matrix columns.
IsSquare Returns True if  the matrix object is a square matrix, otherwise returns False.
Item Returns / sets a single element of the current matrix.
MaxSize Indicates the maximum number of columns or rows of the matrix object.
Rows Sets / returns the number of matrix rows.
Version Returns a string indicating the Matrix ActiveX Component's version and edition.

Methods

Cholesky Performs Cholesky decomposition of the current matrix object.
Clear Sets all matrix elements to zero.
Clone Creates a duplicate matrix object from an existing matrix object.
ColsDotProduct Returns the dot product between two columns of the current matrix.
ColSum Returns the sum of the elements of the specified column.
ColVector  Returns an one-column matrix (vertical vector) using one column of the current matrix object.
Determinant Returns the value of the computed matrix determinant.
EigenC Finds the complex Eigenvalues and Eigenvectors of the current matrix object.
FillRandom Fills the matrix with random values.
GetString Returns a formatted string displaying all matrix elements.
Inverse Creates the inverse of a matrix and returns a reference to it.
IsEqualTo  Returns True if all elements of the matrix object are equal to elements of the matrix to which it is compared. Otherwise returns False.
IsSymmetric Returns True if matrix is a symmetric matrix otherwise returns False.
LU Performs LU Decomposition of the current matrix object. 
Merge Merges current matrix with another and returns the result.
Minus Creates a new matrix object that represents the result of the subtraction of another matrix from current matrix object.
MinusEquals Subtracts another matrix from the current matrix object.
Normalize Creates a normalized matrix out of current matrix and returns a reference to it.
NormalizeMe Normalizes current matrix.
Plus Creates a new matrix object that represents the result of the addition of another matrix to current matrix object.
PlusEquals Adds an other matrix to current matrix.
QR Performs QR decomposition of the current matrix object.
ReorderCols, ReorderRows Rearranges columns or rows of the current matrix object according to a permutation index.
Rows Sets / returns the number of matrix rows.
RowsDotProduct Returns the dot product between two rows of the current matrix.
RowSum Returns the sum of the elements of the specified row.
RowVector Returns an one-row matrix (horizontal vector) using one row of current matrix object.
Size Simultaneously sets both the number of rows and columns of the current matrix object.
Solve, SolveGauss Solves a system of linear equations.
SortCols, SortRows Sorts the columns or rows of the current matrix object.
SubMatrix Returns a new matrix that contains a subset of the current matrix.
Swap Cols, SwapRows Swaps two matrix columns or rows.
Times Returns a new matrix object that represents the result of the multiplication of the current matrix by another matrix.
TimesScalar Returns a new matrix object that represents the result of current's matrix scalar multiplication by a numeric value.
Trace Returns the sum of the diagonal elements.
Transpose Creates a new matrix object that represents the result of the current matrix transpose.

See Also

Matrix Object Properties and Methods