Posts

Showing posts with the label zero matrix

mathajax

Matrix in Java

Image
A matrix is a arrangement of elements or coefficients in rows and columns manners. The following Java Matrix class provides some functions to create different types matrix and some functions to operate on the matrix. a 11 ,a 11 .... a mn are elements of the matrix A. m - number of row of the matrix A. n - number of column of the matrix A. a mn - a element of m th row and n th column of the matrix A. The functions helps to create the following types matrix square matrix zero or null matrix Identity matrix diagonal matrix The functions helps to operate on the matrix transpose cofactor The functions setter/getter a element on the matrix getElement - read a element value from matrix at specified by row and column index setElement - set/put a element value on a matrix at specified row and column index Square Matrix -Example...