Skip to content

Commit 672adf6

Browse files
committed
split up resolveOutputShape
1 parent 430093e commit 672adf6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/dev/zarr/zarrjava/v3/codec/core/ReshapeCodec.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,10 @@ int[] resolveOutputShape(int[] inputShape) throws ZarrException {
148148
// The fundamental reshape law, prod(output) == prod(input).
149149
checkElementCountPreserved(parsed.outputShape, inputTotal);
150150

151-
// Step 5: every merge entry must combine adjacent input dims sitting in the same flat position.
151+
// Every merge entry must combine adjacent input dims sitting in the same flat position.
152152
checkMergesAligned(parsed.outputShape, parsed.inputDimsPerOutput, inputShape);
153153

154-
// Step 6: narrow long -> int for the array API.
154+
// Narrow long -> int for the array API.
155155
return toIntShape(parsed.outputShape);
156156
}
157157

0 commit comments

Comments
 (0)