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