|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.isi.stella.Stella_Object
edu.isi.stella.StandardObject
edu.isi.stella.AbstractCollection
edu.isi.stella.AbstractDimensionalArray
edu.isi.stella.twoDFloatArray
public class twoDFloatArray
2-dimensional array with float values.
| Field Summary | |
|---|---|
int |
dim1
|
int |
dim2
|
double[] |
theArray
|
| Constructor Summary | |
|---|---|
twoDFloatArray()
|
|
| Method Summary | |
|---|---|
void |
initializeArray(double initialvalue)
Initialize the elements of self with initialvalue. |
void |
initializeDimensionalArray()
|
int |
length()
Return the total number of elements in self. |
static twoDFloatArray |
new2DFloatArray(int dim2,
int dim1)
|
double |
oneDAref(int i)
Return the element of self at position JiK. |
int |
oneDArefAddress(int i)
Return the 1D address of the element at position JiK. |
double |
oneDArefSetter(double value,
int i)
Set the element of self at position JiK to value
and return the result. |
Surrogate |
primaryType()
Returns the primary type of self. |
double |
twoDAref(int i,
int j)
Return the element of self at position Ji_JK. |
int |
twoDArefAddress(int i,
int j)
Return the 1D address of the element at position Ji_JK. |
double |
twoDArefSetter(double value,
int i,
int j)
Set the element of self at position Ji_JK to value
and return the result. |
| Methods inherited from class edu.isi.stella.AbstractCollection |
|---|
allocateIterator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int dim2
public int dim1
public double[] theArray
| Constructor Detail |
|---|
public twoDFloatArray()
| Method Detail |
|---|
public static twoDFloatArray new2DFloatArray(int dim2,
int dim1)
public void initializeDimensionalArray()
public void initializeArray(double initialvalue)
self with initialvalue.
initialvalue - public double oneDAref(int i)
self at position JiK.
i -
public double oneDArefSetter(double value,
int i)
self at position JiK to value
and return the result.
value - i -
public int oneDArefAddress(int i)
JiK.
This is useful for fast element-wise iteration that doesn't need arithmetic.
i -
public int length()
self.
length in class AbstractCollection
public double twoDAref(int i,
int j)
self at position Ji_JK.
i - j -
public double twoDArefSetter(double value,
int i,
int j)
self at position Ji_JK to value
and return the result.
value - i - j -
public int twoDArefAddress(int i,
int j)
Ji_JK.
This is useful for fast element-wise iteration that doesn't need arithmetic.
i - j -
public Surrogate primaryType()
Stella_Objectself.
Gets defined automatically for every non-abstract subclass of OBJECT.
primaryType in class Stella_Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||