Package org.bytedeco.javacpp.indexer
Class ULongIndexer
- java.lang.Object
-
- org.bytedeco.javacpp.indexer.Indexer
-
- org.bytedeco.javacpp.indexer.ULongIndexer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Direct Known Subclasses:
ULongArrayIndexer
,ULongBufferIndexer
,ULongRawIndexer
public abstract class ULongIndexer extends Indexer
Abstract indexer for thelong
primitive type, treated as unsigned.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ULongIndexer(long[] sizes, long[] strides)
protected
ULongIndexer(Index index)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ULongIndexer
create(long[] array)
Returnsnew ULongArrayIndexer(array)
static ULongIndexer
create(long[] array, long... sizes)
Returnsnew ULongArrayIndexer(array, sizes)
static ULongIndexer
create(long[] array, long[] sizes, long[] strides)
Returnsnew ULongArrayIndexer(array, sizes, strides)
static ULongIndexer
create(long[] array, Index index)
Returnsnew ULongArrayIndexer(array, index)
static ULongIndexer
create(java.nio.LongBuffer buffer)
Returnsnew ULongBufferIndexer(buffer)
static ULongIndexer
create(java.nio.LongBuffer buffer, long... sizes)
Returnsnew ULongBufferIndexer(buffer, sizes)
static ULongIndexer
create(java.nio.LongBuffer buffer, long[] sizes, long[] strides)
Returnsnew ULongBufferIndexer(buffer, sizes, strides)
static ULongIndexer
create(java.nio.LongBuffer buffer, Index index)
Returnsnew ULongBufferIndexer(buffer, index)
static ULongIndexer
create(LongPointer pointer)
Returnsnew ULongRawIndexer(pointer)
static ULongIndexer
create(LongPointer pointer, long... sizes)
Returnsnew ULongRawIndexer(pointer, sizes)
static ULongIndexer
create(LongPointer pointer, long[] sizes, long[] strides)
Returnsnew ULongRawIndexer(pointer, sizes, strides)
static ULongIndexer
create(LongPointer pointer, long[] sizes, long[] strides, boolean direct)
Returnscreate(pointer, Index.create(sizes, strides), direct)
static ULongIndexer
create(LongPointer pointer, Index index)
Returnsnew ULongRawIndexer(pointer, index)
static ULongIndexer
create(LongPointer pointer, Index index, boolean direct)
Creates a long indexer to access efficiently the data of a pointer.static long
fromBigInteger(java.math.BigInteger l)
abstract java.math.BigInteger
get(long i)
Returnsarray/buffer[index(i)]
abstract java.math.BigInteger
get(long... indices)
Returnsarray/buffer[index(indices)]
ULongIndexer
get(long[] indices, java.math.BigInteger[] l)
Returnsthis
wherel = array/buffer[index(indices)]
abstract ULongIndexer
get(long[] indices, java.math.BigInteger[] l, int offset, int length)
Returnsthis
wherel[offset:offset + length] = array/buffer[index(indices)]
abstract java.math.BigInteger
get(long i, long j)
Returnsarray/buffer[index(i, j)]
abstract java.math.BigInteger
get(long i, long j, long k)
Returnsarray/buffer[index(i, j, k)]
ULongIndexer
get(long i, long j, java.math.BigInteger[] l)
Returnsthis
wherel = array/buffer[index(i, j)]
abstract ULongIndexer
get(long i, long j, java.math.BigInteger[] l, int offset, int length)
Returnsthis
wherel[offset:offset + length] = array/buffer[index(i, j)]
ULongIndexer
get(long i, java.math.BigInteger[] l)
Returnsthis
wherel = array/buffer[index(i)]
abstract ULongIndexer
get(long i, java.math.BigInteger[] l, int offset, int length)
Returnsthis
wherel[offset:offset + length] = array/buffer[index(i)]
double
getDouble(long... indices)
Callsget(int...indices)
and returns the value as a double.abstract ULongIndexer
put(long[] indices, java.math.BigInteger l)
Returnsthis
wherearray/buffer[index(indices)] = l
ULongIndexer
put(long[] indices, java.math.BigInteger... l)
Returnsthis
wherearray/buffer[index(indices)] = l
abstract ULongIndexer
put(long[] indices, java.math.BigInteger[] l, int offset, int length)
Returnsthis
wherearray/buffer[index(indices)] = l[offset:offset + length]
abstract ULongIndexer
put(long i, long j, long k, java.math.BigInteger l)
Returnsthis
wherearray/buffer[index(i, j, k)] = l
abstract ULongIndexer
put(long i, long j, java.math.BigInteger l)
Returnsthis
wherearray/buffer[index(i, j)] = l
ULongIndexer
put(long i, long j, java.math.BigInteger... l)
Returnsthis
wherearray/buffer[index(i, j)] = l
abstract ULongIndexer
put(long i, long j, java.math.BigInteger[] l, int offset, int length)
Returnsthis
wherearray/buffer[index(i, j)] = l[offset:offset + length]
abstract ULongIndexer
put(long i, java.math.BigInteger l)
Returnsthis
wherearray/buffer[index(i)] = l
ULongIndexer
put(long i, java.math.BigInteger... l)
Returnsthis
wherearray/buffer[index(i)] = l
abstract ULongIndexer
put(long i, java.math.BigInteger[] l, int offset, int length)
Returnsthis
wherearray/buffer[index(i)] = l[offset:offset + length]
ULongIndexer
putDouble(long[] indices, double l)
Casts value to primitive type and callsput(long[] indices, <type> value)
.static java.math.BigInteger
toBigInteger(long l)
-
-
-
Field Detail
-
VALUE_BYTES
public static final int VALUE_BYTES
The number of bytes used to represent a long.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ULongIndexer
protected ULongIndexer(Index index)
-
ULongIndexer
protected ULongIndexer(long[] sizes, long[] strides)
-
-
Method Detail
-
create
public static ULongIndexer create(long[] array)
Returnsnew ULongArrayIndexer(array)
-
create
public static ULongIndexer create(java.nio.LongBuffer buffer)
Returnsnew ULongBufferIndexer(buffer)
-
create
public static ULongIndexer create(LongPointer pointer)
Returnsnew ULongRawIndexer(pointer)
-
create
public static ULongIndexer create(long[] array, Index index)
Returnsnew ULongArrayIndexer(array, index)
-
create
public static ULongIndexer create(java.nio.LongBuffer buffer, Index index)
Returnsnew ULongBufferIndexer(buffer, index)
-
create
public static ULongIndexer create(LongPointer pointer, Index index)
Returnsnew ULongRawIndexer(pointer, index)
-
create
public static ULongIndexer create(long[] array, long... sizes)
Returnsnew ULongArrayIndexer(array, sizes)
-
create
public static ULongIndexer create(java.nio.LongBuffer buffer, long... sizes)
Returnsnew ULongBufferIndexer(buffer, sizes)
-
create
public static ULongIndexer create(LongPointer pointer, long... sizes)
Returnsnew ULongRawIndexer(pointer, sizes)
-
create
public static ULongIndexer create(long[] array, long[] sizes, long[] strides)
Returnsnew ULongArrayIndexer(array, sizes, strides)
-
create
public static ULongIndexer create(java.nio.LongBuffer buffer, long[] sizes, long[] strides)
Returnsnew ULongBufferIndexer(buffer, sizes, strides)
-
create
public static ULongIndexer create(LongPointer pointer, long[] sizes, long[] strides)
Returnsnew ULongRawIndexer(pointer, sizes, strides)
-
create
public static ULongIndexer create(LongPointer pointer, long[] sizes, long[] strides, boolean direct)
Returnscreate(pointer, Index.create(sizes, strides), direct)
-
create
public static ULongIndexer create(LongPointer pointer, Index index, boolean direct)
Creates a long indexer to access efficiently the data of a pointer.- Parameters:
pointer
- data to access via a buffer or to copy to an arrayindex
- to usedirect
-true
to use a direct buffer, seeIndexer
for details- Returns:
- the new long indexer backed by the raw memory interface, a buffer, or an array
-
toBigInteger
public static java.math.BigInteger toBigInteger(long l)
-
fromBigInteger
public static long fromBigInteger(java.math.BigInteger l)
-
get
public abstract java.math.BigInteger get(long i)
Returnsarray/buffer[index(i)]
-
get
public ULongIndexer get(long i, java.math.BigInteger[] l)
Returnsthis
wherel = array/buffer[index(i)]
-
get
public abstract ULongIndexer get(long i, java.math.BigInteger[] l, int offset, int length)
Returnsthis
wherel[offset:offset + length] = array/buffer[index(i)]
-
get
public abstract java.math.BigInteger get(long i, long j)
Returnsarray/buffer[index(i, j)]
-
get
public ULongIndexer get(long i, long j, java.math.BigInteger[] l)
Returnsthis
wherel = array/buffer[index(i, j)]
-
get
public abstract ULongIndexer get(long i, long j, java.math.BigInteger[] l, int offset, int length)
Returnsthis
wherel[offset:offset + length] = array/buffer[index(i, j)]
-
get
public abstract java.math.BigInteger get(long i, long j, long k)
Returnsarray/buffer[index(i, j, k)]
-
get
public abstract java.math.BigInteger get(long... indices)
Returnsarray/buffer[index(indices)]
-
get
public ULongIndexer get(long[] indices, java.math.BigInteger[] l)
Returnsthis
wherel = array/buffer[index(indices)]
-
get
public abstract ULongIndexer get(long[] indices, java.math.BigInteger[] l, int offset, int length)
Returnsthis
wherel[offset:offset + length] = array/buffer[index(indices)]
-
put
public abstract ULongIndexer put(long i, java.math.BigInteger l)
Returnsthis
wherearray/buffer[index(i)] = l
-
put
public ULongIndexer put(long i, java.math.BigInteger... l)
Returnsthis
wherearray/buffer[index(i)] = l
-
put
public abstract ULongIndexer put(long i, java.math.BigInteger[] l, int offset, int length)
Returnsthis
wherearray/buffer[index(i)] = l[offset:offset + length]
-
put
public abstract ULongIndexer put(long i, long j, java.math.BigInteger l)
Returnsthis
wherearray/buffer[index(i, j)] = l
-
put
public ULongIndexer put(long i, long j, java.math.BigInteger... l)
Returnsthis
wherearray/buffer[index(i, j)] = l
-
put
public abstract ULongIndexer put(long i, long j, java.math.BigInteger[] l, int offset, int length)
Returnsthis
wherearray/buffer[index(i, j)] = l[offset:offset + length]
-
put
public abstract ULongIndexer put(long i, long j, long k, java.math.BigInteger l)
Returnsthis
wherearray/buffer[index(i, j, k)] = l
-
put
public abstract ULongIndexer put(long[] indices, java.math.BigInteger l)
Returnsthis
wherearray/buffer[index(indices)] = l
-
put
public ULongIndexer put(long[] indices, java.math.BigInteger... l)
Returnsthis
wherearray/buffer[index(indices)] = l
-
put
public abstract ULongIndexer put(long[] indices, java.math.BigInteger[] l, int offset, int length)
Returnsthis
wherearray/buffer[index(indices)] = l[offset:offset + length]
-
getDouble
public double getDouble(long... indices)
Description copied from class:Indexer
Callsget(int...indices)
and returns the value as a double.
-
putDouble
public ULongIndexer putDouble(long[] indices, double l)
Description copied from class:Indexer
Casts value to primitive type and callsput(long[] indices, <type> value)
.
-
-