public class Indexers extends Object
IntTuple instances to
1-dimensional (array) indices.| Modifier and Type | Method and Description |
|---|---|
static java.util.function.ToIntFunction<IntTuple> |
colexicographicalIndexer(IntTuple size)
Creates a function that maps multidimensional indices to 1D indices.
|
static java.util.function.ToIntFunction<IntTuple> |
indexer(Order order,
IntTuple size)
Creates a function that maps multidimensional indices to 1D indices.
|
static java.util.function.ToIntFunction<IntTuple> |
lexicographicalIndexer(IntTuple size)
Creates a function that maps multidimensional indices to 1D indices.
|
public static java.util.function.ToIntFunction<IntTuple> indexer(Order order, IntTuple size)
Order. If the given Order
is null, then an unspecified default order will be
used.order - The order for the indexingsize - The size of the array to indexNullPointerException - If the given size is null.public static java.util.function.ToIntFunction<IntTuple> lexicographicalIndexer(IntTuple size)
size - The size of the array to indexNullPointerException - If the given size is null.public static java.util.function.ToIntFunction<IntTuple> colexicographicalIndexer(IntTuple size)
size - The size of the array to indexNullPointerException - If the given size is null.Copyright © 2015. All Rights Reserved.