public abstract class LongArray1D extends LayoutType
Modifier and Type | Field and Description |
---|---|
protected long |
length |
location
Modifier | Constructor and Description |
---|---|
protected |
LongArray1D(long length) |
Modifier and Type | Method and Description |
---|---|
abstract long |
at(long index)
Get an array element
|
long |
getLength()
Get the number of array elements.
|
abstract void |
put(long index,
long value)
Set an array element
|
abstract LongArray1D |
range(long startIdx,
long length)
Extract a sub range of the array
|
long |
sizeof()
Get the data size required for an array of a given length.
|
java.lang.String |
toString() |
bindLocation
public abstract long at(long index)
index
- the element indexpublic final long getLength()
public abstract void put(long index, long value)
index
- the element indexvalue
- new value of the array elementpublic abstract LongArray1D range(long startIdx, long length)
startIdx
- the starting array indexlength
- the number of array elements to extractpublic long sizeof()
sizeof
in class LayoutType
length
- The number of elements.public java.lang.String toString()
toString
in class java.lang.Object