CMatrix operators

CMatrix x,y,z;  // define Matrixes
CMatrix H; // define a matrix
double t;

Operator Example Explanation
[] t= x[i][j] or t=x.GetAt(i,j); Extract the (i,j) element in the matrix
+ z=x+y z[i][j]=x[i][j]+y[i][j]   for all i,j
- z=x-y z[i][j]=x[i][j]-y[i][j]    for all i ,j
* (double) z=x*t z[i][j]=x[i][j]*t    for all i,j
* (CVector) H=x*y H[i][j]=x[i][1]*y[1][j]+x[i][2]*y[2][j] + ...+  x[i][m]*y[m][j]      m-maximum number of columns of Matrix x, which must be euqal to the maximum number of column of Matrix y
/ (double) z=x/t z[i][j]=x[i][j]/t            for all  i,j
^ (double) z=x^t z[i][j]=x[i][j]**t        for all i, j
^ (CVector) z=x^y t=x[1]*y[1]+x[2]*y[2]+......+x[n]*y[n]
= (CVector) z=x z[i][j]=x[i][j]
= (double) z=t z[i][j]=t

CMatrix OverviewClass Members