Package org.bytedeco.javacpp.indexer
Class DoubleArrayIndexer
- java.lang.Object
-
- org.bytedeco.javacpp.indexer.Indexer
-
- org.bytedeco.javacpp.indexer.DoubleIndexer
-
- org.bytedeco.javacpp.indexer.DoubleArrayIndexer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class DoubleArrayIndexer extends DoubleIndexer
An indexer for adouble[]array.
-
-
Field Summary
Fields Modifier and Type Field Description protected double[]arrayThe backing array.-
Fields inherited from class org.bytedeco.javacpp.indexer.DoubleIndexer
VALUE_BYTES
-
-
Constructor Summary
Constructors Constructor Description DoubleArrayIndexer(double[] array)CallsDoubleArrayIndexer(array, Index.create(array.length)).DoubleArrayIndexer(double[] array, long... sizes)CallsDoubleArrayIndexer(array, Index.create(sizes)).DoubleArrayIndexer(double[] array, long[] sizes, long[] strides)CallsDoubleArrayIndexer(array, Index.create(sizes, strides)).DoubleArrayIndexer(double[] array, Index index)Constructor to set thearrayandIndexer.index.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]array()Returns the backing array, ornullif nonedoubleget(long i)Returnsarray/buffer[index(i)]doubleget(long... indices)Returnsarray/buffer[index(indices)]DoubleIndexerget(long[] indices, double[] d, int offset, int length)Returnsthiswhered[offset:offset + length] = array/buffer[index(indices)]DoubleIndexerget(long i, double[] d, int offset, int length)Returnsthiswhered[offset:offset + length] = array/buffer[index(i)]doubleget(long i, long j)Returnsarray/buffer[index(i, j)]DoubleIndexerget(long i, long j, double[] d, int offset, int length)Returnsthiswhered[offset:offset + length] = array/buffer[index(i, j)]doubleget(long i, long j, long k)Returnsarray/buffer[index(i, j, k)]DoubleIndexerput(long[] indices, double d)Returnsthiswherearray/buffer[index(indices)] = dDoubleIndexerput(long[] indices, double[] d, int offset, int length)Returnsthiswherearray/buffer[index(indices)] = d[offset:offset + length]DoubleIndexerput(long i, double d)Returnsthiswherearray/buffer[index(i)] = dDoubleIndexerput(long i, double[] d, int offset, int length)Returnsthiswherearray/buffer[index(i)] = d[offset:offset + length]DoubleIndexerput(long i, long j, double d)Returnsthiswherearray/buffer[index(i, j)] = dDoubleIndexerput(long i, long j, double[] d, int offset, int length)Returnsthiswherearray/buffer[index(i, j)] = d[offset:offset + length]DoubleIndexerput(long i, long j, long k, double d)Returnsthiswherearray/buffer[index(i, j, k)] = dDoubleIndexerreindex(Index index)Returns a new Indexer using the same data, but with a different Index.voidrelease()Makes sure changes are reflected onto the backing memory and clears any references.-
Methods inherited from class org.bytedeco.javacpp.indexer.DoubleIndexer
create, create, create, create, create, create, create, create, create, create, create, create, create, create, get, get, get, getDouble, put, put, put, putDouble
-
-
-
-
Constructor Detail
-
DoubleArrayIndexer
public DoubleArrayIndexer(double[] array)
CallsDoubleArrayIndexer(array, Index.create(array.length)).
-
DoubleArrayIndexer
public DoubleArrayIndexer(double[] array, long... sizes)CallsDoubleArrayIndexer(array, Index.create(sizes)).
-
DoubleArrayIndexer
public DoubleArrayIndexer(double[] array, long[] sizes, long[] strides)CallsDoubleArrayIndexer(array, Index.create(sizes, strides)).
-
DoubleArrayIndexer
public DoubleArrayIndexer(double[] array, Index index)Constructor to set thearrayandIndexer.index.
-
-
Method Detail
-
array
public double[] array()
Description copied from class:IndexerReturns the backing array, ornullif none
-
reindex
public DoubleIndexer reindex(Index index)
Description copied from class:IndexerReturns a new Indexer using the same data, but with a different Index.
-
get
public double get(long i)
Description copied from class:DoubleIndexerReturnsarray/buffer[index(i)]- Specified by:
getin classDoubleIndexer
-
get
public DoubleIndexer get(long i, double[] d, int offset, int length)
Description copied from class:DoubleIndexerReturnsthiswhered[offset:offset + length] = array/buffer[index(i)]- Specified by:
getin classDoubleIndexer
-
get
public double get(long i, long j)Description copied from class:DoubleIndexerReturnsarray/buffer[index(i, j)]- Specified by:
getin classDoubleIndexer
-
get
public DoubleIndexer get(long i, long j, double[] d, int offset, int length)
Description copied from class:DoubleIndexerReturnsthiswhered[offset:offset + length] = array/buffer[index(i, j)]- Specified by:
getin classDoubleIndexer
-
get
public double get(long i, long j, long k)Description copied from class:DoubleIndexerReturnsarray/buffer[index(i, j, k)]- Specified by:
getin classDoubleIndexer
-
get
public double get(long... indices)
Description copied from class:DoubleIndexerReturnsarray/buffer[index(indices)]- Specified by:
getin classDoubleIndexer
-
get
public DoubleIndexer get(long[] indices, double[] d, int offset, int length)
Description copied from class:DoubleIndexerReturnsthiswhered[offset:offset + length] = array/buffer[index(indices)]- Specified by:
getin classDoubleIndexer
-
put
public DoubleIndexer put(long i, double d)
Description copied from class:DoubleIndexerReturnsthiswherearray/buffer[index(i)] = d- Specified by:
putin classDoubleIndexer
-
put
public DoubleIndexer put(long i, double[] d, int offset, int length)
Description copied from class:DoubleIndexerReturnsthiswherearray/buffer[index(i)] = d[offset:offset + length]- Specified by:
putin classDoubleIndexer
-
put
public DoubleIndexer put(long i, long j, double d)
Description copied from class:DoubleIndexerReturnsthiswherearray/buffer[index(i, j)] = d- Specified by:
putin classDoubleIndexer
-
put
public DoubleIndexer put(long i, long j, double[] d, int offset, int length)
Description copied from class:DoubleIndexerReturnsthiswherearray/buffer[index(i, j)] = d[offset:offset + length]- Specified by:
putin classDoubleIndexer
-
put
public DoubleIndexer put(long i, long j, long k, double d)
Description copied from class:DoubleIndexerReturnsthiswherearray/buffer[index(i, j, k)] = d- Specified by:
putin classDoubleIndexer
-
put
public DoubleIndexer put(long[] indices, double d)
Description copied from class:DoubleIndexerReturnsthiswherearray/buffer[index(indices)] = d- Specified by:
putin classDoubleIndexer
-
put
public DoubleIndexer put(long[] indices, double[] d, int offset, int length)
Description copied from class:DoubleIndexerReturnsthiswherearray/buffer[index(indices)] = d[offset:offset + length]- Specified by:
putin classDoubleIndexer
-
-