Go to the first, previous, next, last section, table of contents.
This section describes the mathematical functions available on matrices.
The symbols A, B and C are of the class
integer_matrix
, x, i and j are
integers and b is a boolean.
x = A[i][j];
-
A[i][j] = y;
-
Read and modify element (i,j) of matrix A.
A[i] = B[j];
-
Update the i-th row of A by the j-th row of B.
b = (A == B);
-
Is matrix A and B are identical? (!= is also available)
C = A + B;
-
Add the two matrices A and B and results in C.
C = A - B;
-
Subtract the two matrices A and B and results in
C.
C = A * B;
-
Multiply matrices A and B and put results in the matrix
C.
C += A;
-
Add A to matrix C.
C -= A;
-
Subtract A from matrix C.
C *= A;
-
Multiply C by the matrix A.
C = A + x;
-
Add the integer x to each element of A and put results in
C.
C = A - x;
-
Subtract the integer x form each element of A and put
results in the matrix C.
C = A * x;
-
Multiply each element of A by the integer x and put
results in the matrix C.
C = A / x;
-
Divide each element of A by the integer x and put results
in the matrix C.
C += x;
-
Add the integer x to each element of C.
C -= x;
-
Subtract the integer x from each element of C.
C *= x;
-
Multiply each element of A by the integer x.
C /= x;
-
Divide each element of A by the integer x.
x = A.determinant();
-
x gets the determinant of A.
C = A.transpose();
-
Matrix C gets the transpose of A.
C = A.inverse();
-
Matrix C gets the inverse of A.
C = A.inverse(&x);
-
Matrix C gets the inverse of A and the integer x is
the determinant.
Go to the first, previous, next, last section, table of contents.