|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.multicorebsp.util.MatrixData<T>
public abstract class MatrixData<T extends MatrixData<?>>
Class storing nonzero values of sparse matrices. Also subs as a factory of the different storage classes.
| Constructor Summary | |
|---|---|
MatrixData()
|
|
| Method Summary | |
|---|---|
abstract void |
add(int i,
int j)
Adds the values of two nonzeroes and saves it at the last index available. |
java.lang.Object |
clone()
|
abstract void |
parseAndWrite(int i,
java.util.Scanner s)
Parses an input stream and writes the contect to the i'th index. |
abstract void |
removeDuplicates(int nr)
Removes duplicates from the data structure. |
abstract T |
safeClone(int i,
int j)
Clones only a subset of the data. |
abstract void |
swap(int i,
int j)
Swaps data elements. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.multicorebsp.core.CompulsaryCloneable |
|---|
safeClone |
| Constructor Detail |
|---|
public MatrixData()
| Method Detail |
|---|
public abstract void add(int i,
int j)
i - First nonzero index (will remain unchanged).j - Second nonzero index (will be replaced by sum).public abstract void removeDuplicates(int nr)
nr - Number of elements to remove.
public abstract void swap(int i,
int j)
i - First indexj - Second indexpublic java.lang.Object clone()
clone in interface com.multicorebsp.core.CompulsaryCloneable<T extends MatrixData<?>>clone in class java.lang.Object
public abstract T safeClone(int i,
int j)
i - Lower bound of the index to copy.j - Upper bound on the index to copy.
public abstract void parseAndWrite(int i,
java.util.Scanner s)
i - At what index to save input.s - Where to get the input from.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||