|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FloatTupleArray
Growable data structure for float tuples.
Nested Class Summary | |
---|---|
static class |
FloatTupleArray.Factory
|
Method Summary | |
---|---|
void |
add(float[][] elements)
Add tuples to the array. |
void |
add(float[][] values,
int start,
int num)
Add tuples to array. |
int |
dim()
Get array tuple dimension. |
float[][] |
elements()
Get the elements of this array. |
float |
get(int i,
int j)
Get a value. |
void |
set(int i,
int j,
float val)
Set an array value. |
int |
size()
Get array size. |
float[][] |
toArray()
Get array data. |
Method Detail |
---|
void add(float[][] values, int start, int num)
values
- Values to add to array where dimension 2 == dim()
.start
- Index in input array where to start taking tuples.num
- The number of tuples to take.float[][] elements()
void add(float[][] elements)
elements
- Values to add to array where dimension 2 == dim()
.void set(int i, int j, float val)
i
- Tuple row index.j
- Tuple col index.val
- Value to set.float get(int i, int j)
i
- Tuple row index.j
- Tuple col index.
i
at tuple index j
.float[][] toArray()
int size()
int dim()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |