Matrix.java - A Matrix class that contains several useful operations: constructors, input/output, accessors, mutators, and other matrix operations .
myRows >= 0 && myColumns >= 0
Default constructorPostcondition: myArray == null && myRows == 0 && myColums == 0
Explicit-Value ConstructorReceive: integers rows and columns
Precondition: rows >= 0 && columns >= 0
Postcondition: myArray is a rows X columns array of doubles && myRows == rows && myColums == columns
Input methodInput: integers rows and columns
Precondition: rows >= 0 && columns >= 0
Postcondition: myArray is a rows X columns array of doubles && myRows == rows && myColums == columns
To-string converterReturn: a String representation of a matrix
rows accessorReturn: number of rows
columns accessorReturn: number of columns
Matrix element mutatorReceive: integers row and column, a double value
Postcondition: myArray[row][column] == value
Matrix element accessorReceive: integers row and column
Return: myArray[row][column] == value
Matrix multiplicationReceive: Matrix mat2
Precondition: # columns in current matrix == # rows in mat2
Return: product of current matrix with mat2
Back to the package documentation index