Class ULongIndexer

java.lang.Object
org.bytedeco.javacpp.indexer.Indexer
org.bytedeco.javacpp.indexer.ULongIndexer
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
ULongArrayIndexer, ULongBufferIndexer, ULongRawIndexer

public abstract class ULongIndexer extends Indexer
Abstract indexer for the long primitive type, treated as unsigned.
  • Field Details

    • VALUE_BYTES

      public static final int VALUE_BYTES
      The number of bytes used to represent a long.
      See Also:
  • Constructor Details

    • ULongIndexer

      protected ULongIndexer(Index index)
    • ULongIndexer

      protected ULongIndexer(long[] sizes, long[] strides)
  • Method Details

    • create

      public static ULongIndexer create(long[] array)
      Returns new ULongArrayIndexer(array)
    • create

      public static ULongIndexer create(LongBuffer buffer)
      Returns new ULongBufferIndexer(buffer)
    • create

      public static ULongIndexer create(LongPointer pointer)
      Returns new ULongRawIndexer(pointer)
    • create

      public static ULongIndexer create(long[] array, Index index)
      Returns new ULongArrayIndexer(array, index)
    • create

      public static ULongIndexer create(LongBuffer buffer, Index index)
      Returns new ULongBufferIndexer(buffer, index)
    • create

      public static ULongIndexer create(LongPointer pointer, Index index)
      Returns new ULongRawIndexer(pointer, index)
    • create

      public static ULongIndexer create(long[] array, long... sizes)
      Returns new ULongArrayIndexer(array, sizes)
    • create

      public static ULongIndexer create(LongBuffer buffer, long... sizes)
      Returns new ULongBufferIndexer(buffer, sizes)
    • create

      public static ULongIndexer create(LongPointer pointer, long... sizes)
      Returns new ULongRawIndexer(pointer, sizes)
    • create

      public static ULongIndexer create(long[] array, long[] sizes, long[] strides)
      Returns new ULongArrayIndexer(array, sizes, strides)
    • create

      public static ULongIndexer create(LongBuffer buffer, long[] sizes, long[] strides)
      Returns new ULongBufferIndexer(buffer, sizes, strides)
    • create

      public static ULongIndexer create(LongPointer pointer, long[] sizes, long[] strides)
      Returns new ULongRawIndexer(pointer, sizes, strides)
    • create

      public static ULongIndexer create(LongPointer pointer, long[] sizes, long[] strides, boolean direct)
      Returns create(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 array
      index - to use
      direct - true to use a direct buffer, see Indexer for details
      Returns:
      the new long indexer backed by the raw memory interface, a buffer, or an array
    • toBigInteger

      public static BigInteger toBigInteger(long l)
    • fromBigInteger

      public static long fromBigInteger(BigInteger l)
    • get

      public abstract BigInteger get(long i)
      Returns array/buffer[index(i)]
    • get

      public ULongIndexer get(long i, BigInteger[] l)
      Returns this where l = array/buffer[index(i)]
    • get

      public abstract ULongIndexer get(long i, BigInteger[] l, int offset, int length)
      Returns this where l[offset:offset + length] = array/buffer[index(i)]
    • get

      public abstract BigInteger get(long i, long j)
      Returns array/buffer[index(i, j)]
    • get

      public ULongIndexer get(long i, long j, BigInteger[] l)
      Returns this where l = array/buffer[index(i, j)]
    • get

      public abstract ULongIndexer get(long i, long j, BigInteger[] l, int offset, int length)
      Returns this where l[offset:offset + length] = array/buffer[index(i, j)]
    • get

      public abstract BigInteger get(long i, long j, long k)
      Returns array/buffer[index(i, j, k)]
    • get

      public abstract BigInteger get(long... indices)
      Returns array/buffer[index(indices)]
    • get

      public ULongIndexer get(long[] indices, BigInteger[] l)
      Returns this where l = array/buffer[index(indices)]
    • get

      public abstract ULongIndexer get(long[] indices, BigInteger[] l, int offset, int length)
      Returns this where l[offset:offset + length] = array/buffer[index(indices)]
    • put

      public abstract ULongIndexer put(long i, BigInteger l)
      Returns this where array/buffer[index(i)] = l
    • put

      public ULongIndexer put(long i, BigInteger... l)
      Returns this where array/buffer[index(i)] = l
    • put

      public abstract ULongIndexer put(long i, BigInteger[] l, int offset, int length)
      Returns this where array/buffer[index(i)] = l[offset:offset + length]
    • put

      public abstract ULongIndexer put(long i, long j, BigInteger l)
      Returns this where array/buffer[index(i, j)] = l
    • put

      public ULongIndexer put(long i, long j, BigInteger... l)
      Returns this where array/buffer[index(i, j)] = l
    • put

      public abstract ULongIndexer put(long i, long j, BigInteger[] l, int offset, int length)
      Returns this where array/buffer[index(i, j)] = l[offset:offset + length]
    • put

      public abstract ULongIndexer put(long i, long j, long k, BigInteger l)
      Returns this where array/buffer[index(i, j, k)] = l
    • put

      public abstract ULongIndexer put(long[] indices, BigInteger l)
      Returns this where array/buffer[index(indices)] = l
    • put

      public ULongIndexer put(long[] indices, BigInteger... l)
      Returns this where array/buffer[index(indices)] = l
    • put

      public abstract ULongIndexer put(long[] indices, BigInteger[] l, int offset, int length)
      Returns this where array/buffer[index(indices)] = l[offset:offset + length]
    • getDouble

      public double getDouble(long... indices)
      Description copied from class: Indexer
      Calls get(int...indices) and returns the value as a double.
      Specified by:
      getDouble in class Indexer
    • putDouble

      public ULongIndexer putDouble(long[] indices, double l)
      Description copied from class: Indexer
      Casts value to primitive type and calls put(long[] indices, <type> value).
      Specified by:
      putDouble in class Indexer