public static final class ArrayView2D.IntArrayView2D extends ArrayView2D implements HjIntArrayView.HjIntArrayView2D
ArrayView2D.DoubleArrayView2D, ArrayView2D.IntArrayView2D
HjIntArrayView.HjIntArrayView1D, HjIntArrayView.HjIntArrayView2D, HjIntArrayView.HjIntArrayView3D
offset, shape
Constructor and Description |
---|
IntArrayView2D(int[] pDataRavel,
int pOffset,
HjRegion.HjRegion2D pShape)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int[] |
baseArray()
The raw Java 1-D array wrapped by the array view.
|
void |
dec(int v,
int i,
int j) |
int |
get(int i,
int j) |
void |
inc(int v,
int i,
int j) |
void |
set(int v,
int i,
int j) |
region, toLinearIndex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
region
public IntArrayView2D(int[] pDataRavel, int pOffset, HjRegion.HjRegion2D pShape)
public int[] baseArray()
HjIntArrayView
baseArray
in interface HjIntArrayView
public int get(int i, int j)
get
in interface HjIntArrayView.HjIntArrayView2D
i
- The first indexj
- The second indexpublic void set(int v, int i, int j)
set
in interface HjIntArrayView.HjIntArrayView2D
v
- The new valuei
- The first indexj
- The second indexpublic void inc(int v, int i, int j)
inc
in interface HjIntArrayView.HjIntArrayView2D
public void dec(int v, int i, int j)
dec
in interface HjIntArrayView.HjIntArrayView2D
Copyright © 2015 Rice University - Department of Computer Science. All rights reserved.