|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Hypermatrix
The Hypermatrix superclass provides an abstract encapsulation for extended matrices. Hypermatrices are also known as MultiArrays. Please recall that 10 elements in 10 dimensions is 10 power 10 total elements, therefore probably more than your system is able to handle.
| Method Summary | |
|---|---|
int[] |
getDimensions()
Returns the array of dimensions. |
java.lang.Number |
getElement(int[] position)
Returns the element at position given by the array of int. |
int |
numDimensions()
Returns the number of dimensions. |
int |
numElements()
Returns the total number of elements. |
int |
numElements(int i)
Returns the number of elements for the given dimension. |
java.lang.Object |
toArray()
Converts this hypermatrix to an array of n dimensions |
java.lang.Object |
toArray(Hypermatrix m)
Converts a hypermatrix to an array of n dimensions |
| Method Detail |
|---|
int numDimensions()
int[] getDimensions()
int numElements(int i)
i - DOCUMENT ME!
int numElements()
java.lang.Number getElement(int[] position)
throws IllegalDimensionException
position - DOCUMENT ME!
IllegalDimensionException - DOCUMENT ME!java.lang.Object toArray()
java.lang.Object toArray(Hypermatrix m)
m - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||