Press on the image to return to the main documentation page. |

Names used here are :

Matrix is equivalent to Array of two dimensions.

The size is defined by number of rows (the first argument of the array)

and number of columns (second argument).

Vector is an Array of one dimension.

Scalar is a single number.

The library includes:

Operations of a Scalar and a Matrix

Operations between two matrices

Operations on a single matrix

There are no limitations on the size of the matrices or vectors.

There is no checking for incorrect dimensions of the matrices.

If not otherwise defined, all methods return 1 at completion.

The Library makes use of BigDecimal numbers to improve accuracy

by minimizing truncation errors.

Rows and Cols refer to the rows and columns of the three matrices,

MatrixC is the result: MatrixC = MatrixA + MatrixB.

Rows and Cols refer to the rows and columns of MatrixA

and MatrixC which is the result : MatrixC = MatrixA + Scalar.

This method is the only method that actually changes

the referenced matrix.

both have to be with the same dimensions Rows and Cols.

is returned as double by this method.

Rows and Cols refer to the rows and columns of MatrixA

and MatrixC which is the result:

MatrixC = MatrixA/Scalar .

(each element is multiplied by the parallel element of the other vector

and the result is the sum of all multiplied pairs).

Length refer to the length of the two vectors which must be the same.

The result is returned by the method.

MatrixC is the inverse of MatrixA.

Returns 0 if the determinant is 0

(hence there is no inverse matrix).

Rows and Cols refer to the rows and columns of MatrixA,

MatrixB has to be with Cols rows and Rows columns,

MatrixC is the result and is of dimension Rows by Rows.

MatrixC = MatrixA X MatrixB.

Rows and Cols refer to the rows and columns of MatrixA

and MatrixC which is the result :

MatrixC = Scalar * MatrixA.

where A is represented by MatrixA, B is represented by MatrixB

and the unknown matrix X is the result MatrixX.

Returns 0 if the determinant is 0 (hence there is no solution).

Size defines the size of the square MatrixA,

Cols define the number of columns in MatrixB and in MatrixX.

where A is represented by MatrixA, B is represented by VectorB

and the unknowns vector X is the result VectorX.

Returns 0 if the determinant is 0 (hence there is no solution).

Size defines the size of the square MatrixA,

and the length of VectorB and VectorX.

Rows and Cols refer to the rows and columns of MatrixA

and MatrixC which is the result : MatrixC = MatrixA + Scalar.

Rows and Cols refer to the rows and columns of MatrixA

and MatrixC which is the result: MatrixC = MatrixA - Scalar.

Rows rows and Cols columns.

MatrixC dimensions are Cols rows and Rows columns.

Top