|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.multicorebsp.util.Matrix<DataType> com.multicorebsp.util.VectorCollection<DataType>
public class VectorCollection<DataType extends MatrixData<DataType>>
Represents a `matrix' with variably-sized rows.
Field Summary | |
---|---|
int[] |
n
Length of each vector. |
int[][] |
p
Global processor ID data. |
Fields inherited from class com.multicorebsp.util.Matrix |
---|
m, nz |
Constructor Summary | |
---|---|
|
VectorCollection(int m,
boolean global_view)
Base constructor. |
protected |
VectorCollection(VectorCollection<DataType> toCopy)
Deep copy constructor. |
Method Summary | |
---|---|
void |
addVector(DataType data,
int i,
int n)
Adds a new vector. |
java.lang.Object |
clone()
|
DataType |
getVector(int index)
Data accessor. |
void |
removeAndAddDuplicates()
Removes and combines any double entries. |
VectorCollection<DataType> |
safeClone()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int[] n
public int[][] p
Constructor Detail |
---|
public VectorCollection(int m, boolean global_view)
protected VectorCollection(VectorCollection<DataType> toCopy)
Method Detail |
---|
public DataType getVector(int index)
index
- Which vector to return.
public void addVector(DataType data, int i, int n)
data
- Where to store the new datai
- The vector index.n
- Length of this vector.public java.lang.Object clone()
clone
in interface com.multicorebsp.core.CompulsaryCloneable<VectorCollection<DataType extends MatrixData<DataType>>>
clone
in class java.lang.Object
public VectorCollection<DataType> safeClone()
safeClone
in interface com.multicorebsp.core.CompulsaryCloneable<VectorCollection<DataType extends MatrixData<DataType>>>
public void removeAndAddDuplicates()
Matrix
removeAndAddDuplicates
in class Matrix<DataType extends MatrixData<DataType>>
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |