public static final class ArrayView1D.DoubleArrayView1D extends ArrayView1D implements HjDoubleArrayView.HjDoubleArrayView1D
ArrayView1D.DoubleArrayView1D, ArrayView1D.IntArrayView1D
HjDoubleArrayView.HjDoubleArrayView1D, HjDoubleArrayView.HjDoubleArrayView2D, HjDoubleArrayView.HjDoubleArrayView3D
offset, shape
Constructor and Description |
---|
DoubleArrayView1D(double[] pDataRavel,
int pOffset,
HjRegion.HjRegion1D 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) |
double |
get(int i) |
void |
inc(double v,
int i) |
void |
set(double v,
int i) |
region, toLinearIndex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
region
public DoubleArrayView1D(double[] pDataRavel, int pOffset, HjRegion.HjRegion1D pShape)
public double[] baseArray()
HjDoubleArrayView
baseArray
in interface HjDoubleArrayView
public double get(int i)
get
in interface HjDoubleArrayView.HjDoubleArrayView1D
i
- The first indexpublic void set(double v, int i)
set
in interface HjDoubleArrayView.HjDoubleArrayView1D
v
- The new valuei
- The first indexpublic void inc(double v, int i)
inc
in interface HjDoubleArrayView.HjDoubleArrayView1D
public void dec(double v, int i)
dec
in interface HjDoubleArrayView.HjDoubleArrayView1D
Copyright © 2015 Rice University - Department of Computer Science. All rights reserved.