public abstract class LongArray2D extends LayoutType
Modifier and Type | Field and Description |
---|---|
protected long |
dim1 |
protected long |
dim2 |
location
Modifier | Constructor and Description |
---|---|
protected |
LongArray2D(long dim1,
long dim2) |
Modifier and Type | Method and Description |
---|---|
abstract long |
at(long i,
long j)
Get an array element
|
long |
dim1()
Get the length of 1st dimension
|
long |
dim2()
Get the length of 2nd dimension
|
abstract void |
put(long i,
long j,
long value)
Set an array element
|
long |
sizeof()
Get the data size required for an array of a given size
|
java.lang.String |
toString() |
bindLocation
public abstract long at(long i, long j)
i
- index in 1st dimj
- index in 2nd dimpublic final long dim1()
public final long dim2()
public abstract void put(long i, long j, long value)
i
- index in 1st dimj
- index in 2nd dimvalue
- new value of the array elementpublic long sizeof()
sizeof
in class LayoutType
dim1
- length of 1st dimdim2
- length of 2nd dimpublic java.lang.String toString()
toString
in class java.lang.Object