public class TiledArray extends Object implements IArrayD2Double
| Constructor and Description |
|---|
TiledArray(int tilesRows,
int tilesCols,
int rows,
int cols,
double defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
int |
columns() |
Tuple2D<ArrayInt.D1,ArrayDouble.D1> |
flatten()
Return array in row compressed storage format.
|
double |
get(int row,
int col) |
ArrayDouble.D2 |
getArray()
Use with caution, creates the dense array according to its bounds in
memory.
|
int[] |
getColumnBounds(int row) |
double |
getDefaultValue() |
int |
getNumberOfStoredElements() |
Area |
getShape() |
IArrayD2Double |
getTile(int x,
int y) |
boolean |
inRange(int i,
int j) |
int |
rows() |
void |
set(int row,
int col,
double d) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStringpublic TiledArray(int tilesRows,
int tilesCols,
int rows,
int cols,
double defaultValue)
public IArrayD2Double getTile(int x, int y)
public int columns()
columns in interface IArrayD2Doublepublic Tuple2D<ArrayInt.D1,ArrayDouble.D1> flatten()
IArrayD2Doubleflatten in interface IArrayD2Doublepublic double get(int row,
int col)
get in interface IArrayD2Doublepublic ArrayDouble.D2 getArray()
IArrayD2DoublegetArray in interface IArrayD2Doublepublic int[] getColumnBounds(int row)
getColumnBounds in interface IArrayD2Doublepublic double getDefaultValue()
getDefaultValue in interface IArrayD2Doublepublic int getNumberOfStoredElements()
getNumberOfStoredElements in interface IArrayD2Doublepublic Area getShape()
getShape in interface IArrayD2Doublepublic boolean inRange(int i,
int j)
inRange in interface IArrayD2Doublepublic int rows()
rows in interface IArrayD2Doublepublic void set(int row,
int col,
double d)
throws ArrayIndexOutOfBoundsException
set in interface IArrayD2Doubled - the value to be set at row,colArrayIndexOutOfBoundsExceptionCopyright © 2007-2013. All Rights Reserved.