Package dev.zarr.zarrjava.utils
Class IndexingUtils
java.lang.Object
dev.zarr.zarrjava.utils.IndexingUtils
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic long[][]computeChunkCoords(int[] arrayShape, int[] chunkShape) static long[][]computeChunkCoords(long[] arrayShape, int[] chunkShape) static long[][]computeChunkCoords(long[] arrayShape, int[] chunkShape, long[] selOffset, int[] selShape) computeProjection(long[] chunkCoords, int[] arrayShape, int[] chunkShape) computeProjection(long[] chunkCoords, long[] arrayShape, int[] chunkShape) computeProjection(long[] chunkCoords, long[] arrayShape, int[] chunkShape, long[] selOffset, int[] selShape) static long[]computeSingleChunkCoords(long[] selOffset, int[] chunkShape) static longcOrderIndex(long[] chunkCoords, long[] arrayShape) static longfOrderIndex(long[] chunkCoords, long[] arrayShape) static booleanisFullChunk(int[] selOffset, int[] selShape, int[] chunkShape) static booleanisSingleFullChunk(long[] selOffset, int[] selShape, int[] chunkShape)
-
Constructor Details
-
IndexingUtils
public IndexingUtils()
-
-
Method Details
-
computeChunkCoords
public static long[][] computeChunkCoords(long[] arrayShape, int[] chunkShape) -
computeChunkCoords
public static long[][] computeChunkCoords(int[] arrayShape, int[] chunkShape) -
computeChunkCoords
public static long[][] computeChunkCoords(long[] arrayShape, int[] chunkShape, long[] selOffset, int[] selShape) -
computeProjection
public static IndexingUtils.ChunkProjection computeProjection(long[] chunkCoords, int[] arrayShape, int[] chunkShape) -
computeProjection
public static IndexingUtils.ChunkProjection computeProjection(long[] chunkCoords, long[] arrayShape, int[] chunkShape) -
computeProjection
public static IndexingUtils.ChunkProjection computeProjection(long[] chunkCoords, long[] arrayShape, int[] chunkShape, long[] selOffset, int[] selShape) -
cOrderIndex
public static long cOrderIndex(long[] chunkCoords, long[] arrayShape) -
fOrderIndex
public static long fOrderIndex(long[] chunkCoords, long[] arrayShape) -
isFullChunk
public static boolean isFullChunk(int[] selOffset, int[] selShape, int[] chunkShape) -
isSingleFullChunk
public static boolean isSingleFullChunk(long[] selOffset, int[] selShape, int[] chunkShape) -
computeSingleChunkCoords
public static long[] computeSingleChunkCoords(long[] selOffset, int[] chunkShape)
-