Class OneIndex

java.lang.Object
org.bytedeco.javacpp.indexer.Index
org.bytedeco.javacpp.indexer.OneIndex

public class OneIndex extends Index
An Index that supports only one size (a single dimension).
  • Constructor Details

    • OneIndex

      public OneIndex(long size)
      Constructor to set the Index.sizes.
  • Method Details

    • index

      public long index(long i)
      Returns i.
      Overrides:
      index in class Index
    • index

      public long index(long i, long j)
      Throws new UnsupportedOperationException().
      Overrides:
      index in class Index
    • index

      public long index(long i, long j, long k)
      Throws new UnsupportedOperationException().
      Overrides:
      index in class Index
    • index

      public long index(long... indices)
      Returns indices[0] if indices.length == 1 or throws new UnsupportedOperationException().
      Specified by:
      index in class Index
      Parameters:
      indices - of each dimension
      Returns:
      index to access array or buffer