Class ULongIndexer

    • 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)
      Returns new ULongArrayIndexer(array)
      static ULongIndexer create​(long[] array, long... sizes)
      Returns new ULongArrayIndexer(array, sizes)
      static ULongIndexer create​(long[] array, long[] sizes, long[] strides)
      Returns new ULongArrayIndexer(array, sizes, strides)
      static ULongIndexer create​(long[] array, Index index)
      Returns new ULongArrayIndexer(array, index)
      static ULongIndexer create​(java.nio.LongBuffer buffer)
      Returns new ULongBufferIndexer(buffer)
      static ULongIndexer create​(java.nio.LongBuffer buffer, long... sizes)
      Returns new ULongBufferIndexer(buffer, sizes)
      static ULongIndexer create​(java.nio.LongBuffer buffer, long[] sizes, long[] strides)
      Returns new ULongBufferIndexer(buffer, sizes, strides)
      static ULongIndexer create​(java.nio.LongBuffer buffer, Index index)
      Returns new ULongBufferIndexer(buffer, index)
      static ULongIndexer create​(LongPointer pointer)
      Returns new ULongRawIndexer(pointer)
      static ULongIndexer create​(LongPointer pointer, long... sizes)
      Returns new ULongRawIndexer(pointer, sizes)
      static ULongIndexer create​(LongPointer pointer, long[] sizes, long[] strides)
      Returns new ULongRawIndexer(pointer, sizes, strides)
      static ULongIndexer create​(LongPointer pointer, long[] sizes, long[] strides, boolean direct)
      Returns create(pointer, Index.create(sizes, strides), direct)
      static ULongIndexer create​(LongPointer pointer, Index index)
      Returns new 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)
      Returns array/buffer[index(i)]
      abstract java.math.BigInteger get​(long... indices)
      Returns array/buffer[index(indices)]
      ULongIndexer get​(long[] indices, java.math.BigInteger[] l)
      Returns this where l = array/buffer[index(indices)]
      abstract ULongIndexer get​(long[] indices, java.math.BigInteger[] l, int offset, int length)
      Returns this where l[offset:offset + length] = array/buffer[index(indices)]
      abstract java.math.BigInteger get​(long i, long j)
      Returns array/buffer[index(i, j)]
      abstract java.math.BigInteger get​(long i, long j, long k)
      Returns array/buffer[index(i, j, k)]
      ULongIndexer get​(long i, long j, java.math.BigInteger[] l)
      Returns this where l = array/buffer[index(i, j)]
      abstract ULongIndexer get​(long i, long j, java.math.BigInteger[] l, int offset, int length)
      Returns this where l[offset:offset + length] = array/buffer[index(i, j)]
      ULongIndexer get​(long i, java.math.BigInteger[] l)
      Returns this where l = array/buffer[index(i)]
      abstract ULongIndexer get​(long i, java.math.BigInteger[] l, int offset, int length)
      Returns this where l[offset:offset + length] = array/buffer[index(i)]
      double getDouble​(long... indices)
      Calls get(int...indices) and returns the value as a double.
      abstract ULongIndexer put​(long[] indices, java.math.BigInteger l)
      Returns this where array/buffer[index(indices)] = l
      ULongIndexer put​(long[] indices, java.math.BigInteger... l)
      Returns this where array/buffer[index(indices)] = l
      abstract ULongIndexer put​(long[] indices, java.math.BigInteger[] l, int offset, int length)
      Returns this where array/buffer[index(indices)] = l[offset:offset + length]
      abstract ULongIndexer put​(long i, long j, long k, java.math.BigInteger l)
      Returns this where array/buffer[index(i, j, k)] = l
      abstract ULongIndexer put​(long i, long j, java.math.BigInteger l)
      Returns this where array/buffer[index(i, j)] = l
      ULongIndexer put​(long i, long j, java.math.BigInteger... l)
      Returns this where array/buffer[index(i, j)] = l
      abstract ULongIndexer put​(long i, long j, java.math.BigInteger[] l, int offset, int length)
      Returns this where array/buffer[index(i, j)] = l[offset:offset + length]
      abstract ULongIndexer put​(long i, java.math.BigInteger l)
      Returns this where array/buffer[index(i)] = l
      ULongIndexer put​(long i, java.math.BigInteger... l)
      Returns this where array/buffer[index(i)] = l
      abstract ULongIndexer put​(long i, java.math.BigInteger[] l, int offset, int length)
      Returns this where array/buffer[index(i)] = l[offset:offset + length]
      ULongIndexer putDouble​(long[] indices, double l)
      Casts value to primitive type and calls put(long[] indices, <type> value).
      static java.math.BigInteger toBigInteger​(long l)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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)
        Returns new ULongArrayIndexer(array)
      • create

        public static ULongIndexer create​(java.nio.LongBuffer buffer)
        Returns new ULongBufferIndexer(buffer)
      • create

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

        public static ULongIndexer create​(java.nio.LongBuffer buffer,
                                          Index index)
        Returns new ULongBufferIndexer(buffer, index)
      • create

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

        public static ULongIndexer create​(java.nio.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​(java.nio.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 java.math.BigInteger toBigInteger​(long l)
      • fromBigInteger

        public static long fromBigInteger​(java.math.BigInteger l)
      • get

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

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

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

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

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

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

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

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

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

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

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

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

        public abstract ULongIndexer put​(long i,
                                         java.math.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,
                                         java.math.BigInteger l)
        Returns this where array/buffer[index(i, j)] = l
      • put

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

        public abstract ULongIndexer put​(long i,
                                         long j,
                                         java.math.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,
                                         java.math.BigInteger l)
        Returns this where array/buffer[index(i, j, k)] = l
      • put

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

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

        public abstract ULongIndexer put​(long[] indices,
                                         java.math.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