student.studio.matrixmultiply

## Class Matrix

• ```public final class Matrix
extends Object```
Author:
Dennis Cosgrove (http://www.cse.wustl.edu/~cosgroved/)
• ### Constructor Summary

Constructors
Constructor and Description
`Matrix(int size)`
• ### Method Summary

All Methods
Modifier and Type Method and Description
`boolean` `equals(Object other)`
`static Matrix` ```parallelChunkedForAll2dIJMultiply(Matrix a, Matrix b)```
`static Matrix` ```parallelChunkedForAllIMultiply(Matrix a, Matrix b)```
`static Matrix` ```parallelDivideAndConquerMultiply(Matrix a, Matrix b)```
`static Matrix` ```parallelForAll2dIJMultiply(Matrix a, Matrix b)```
`static Matrix` ```parallelForAllIForAllJMultiply(Matrix a, Matrix b)```
`static Matrix` ```parallelForAllIMultiply(Matrix a, Matrix b)```
`static Matrix` ```parallelGroupedForAllTasksForSeq2dIJMultiply(Matrix a, Matrix b)```
`static Matrix` ```parallelGroupedForAllTasksForSeqIMultiply(Matrix a, Matrix b)```
`static Matrix` ```sequentialDivideAndConquerMultiply(Matrix a, Matrix b)```
`static Matrix` ```sequentialIterativeMultiply(Matrix a, Matrix b)```
`void` `setAllRandom()`
`String` `toString()`
• ### Methods inherited from class java.lang.Object

`clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`
• ### Constructor Detail

• #### Matrix

`public Matrix(int size)`
• ### Method Detail

• #### setAllRandom

`public void setAllRandom()`
• #### sequentialIterativeMultiply

```public static Matrix sequentialIterativeMultiply(Matrix a,
Matrix b)```
• #### parallelForAllIMultiply

```public static Matrix parallelForAllIMultiply(Matrix a,
Matrix b)
throws edu.rice.hj.api.SuspendableException```
Throws:
`edu.rice.hj.api.SuspendableException`
• #### parallelChunkedForAllIMultiply

```public static Matrix parallelChunkedForAllIMultiply(Matrix a,
Matrix b)
throws edu.rice.hj.api.SuspendableException```
Throws:
`edu.rice.hj.api.SuspendableException`

```public static Matrix parallelGroupedForAllTasksForSeqIMultiply(Matrix a,
Matrix b)
throws edu.rice.hj.api.SuspendableException```
Throws:
`edu.rice.hj.api.SuspendableException`
• #### parallelForAllIForAllJMultiply

```public static Matrix parallelForAllIForAllJMultiply(Matrix a,
Matrix b)
throws edu.rice.hj.api.SuspendableException```
Throws:
`edu.rice.hj.api.SuspendableException`
• #### parallelForAll2dIJMultiply

```public static Matrix parallelForAll2dIJMultiply(Matrix a,
Matrix b)
throws edu.rice.hj.api.SuspendableException```
Throws:
`edu.rice.hj.api.SuspendableException`
• #### parallelChunkedForAll2dIJMultiply

```public static Matrix parallelChunkedForAll2dIJMultiply(Matrix a,
Matrix b)
throws edu.rice.hj.api.SuspendableException```
Throws:
`edu.rice.hj.api.SuspendableException`

```public static Matrix parallelGroupedForAllTasksForSeq2dIJMultiply(Matrix a,
Matrix b)
throws edu.rice.hj.api.SuspendableException```
Throws:
`edu.rice.hj.api.SuspendableException`
• #### sequentialDivideAndConquerMultiply

```public static Matrix sequentialDivideAndConquerMultiply(Matrix a,
Matrix b)```
• #### parallelDivideAndConquerMultiply

```public static Matrix parallelDivideAndConquerMultiply(Matrix a,
Matrix b)
throws edu.rice.hj.api.SuspendableException```
Throws:
`edu.rice.hj.api.SuspendableException`
• #### toString

`public String toString()`
Overrides:
`toString` in class `Object`
• #### equals

`public boolean equals(Object other)`
Overrides:
`equals` in class `Object`