Skip to content

Commit

Permalink
correct bug
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Oct 18, 2024
1 parent 524d74d commit 54c8798
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,8 @@ private void buildInt8(RandomAccessibleInterval<ByteType> tensor, boolean isFort
Cursor<ByteType> cursor = Views.flatIterable(tensor).cursor();
long i = 0;
while (cursor.hasNext()) {
cursor.fwd();
this.pSharedMemory.setByte(offset + (i ++), cursor.get().get());
cursor.fwd();
}
}

Expand Down Expand Up @@ -522,8 +522,8 @@ private void buildInt16(RandomAccessibleInterval<ShortType> tensor, boolean isFo
Cursor<ShortType> cursor = Views.flatIterable(tensor).cursor();
long i = 0;
while (cursor.hasNext()) {
cursor.fwd();
this.pSharedMemory.setShort(offset + (i * Short.BYTES), cursor.get().get());
cursor.fwd();
i ++;
}
}
Expand All @@ -541,8 +541,8 @@ private void buildUint16(RandomAccessibleInterval<UnsignedShortType> tensor, boo
Cursor<UnsignedShortType> cursor = Views.flatIterable(tensor).cursor();
long i = 0;
while (cursor.hasNext()) {
cursor.fwd();
this.pSharedMemory.setShort(offset + (i * Short.BYTES), cursor.get().getShort());
cursor.fwd();
i ++;
}
}
Expand Down Expand Up @@ -617,8 +617,8 @@ private void buildFloat32(RandomAccessibleInterval<FloatType> tensor, boolean is
Cursor<FloatType> cursor = Views.flatIterable(tensor).cursor();
long i = 0;
while (cursor.hasNext()) {
cursor.fwd();
this.pSharedMemory.setFloat(offset + (i * Float.BYTES), cursor.get().get());
cursor.fwd();
i ++;
}
}
Expand All @@ -636,8 +636,8 @@ private void buildFloat64(RandomAccessibleInterval<DoubleType> tensor, boolean i
Cursor<DoubleType> cursor = Views.flatIterable(tensor).cursor();
long i = 0;
while (cursor.hasNext()) {
cursor.fwd();
this.pSharedMemory.setDouble(offset + (i * Double.BYTES), cursor.get().get());
cursor.fwd();
i ++;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ private void buildInt8(RandomAccessibleInterval<ByteType> tensor, boolean isFort
Cursor<ByteType> cursor = Views.flatIterable(tensor).cursor();
long i = 0;
while (cursor.hasNext()) {
cursor.fwd();
this.pSharedMemory.setByte(offset + (i ++), cursor.get().get());
cursor.fwd();
}
}

Expand Down Expand Up @@ -477,8 +477,8 @@ private void buildInt16(RandomAccessibleInterval<ShortType> tensor, boolean isFo
Cursor<ShortType> cursor = Views.flatIterable(tensor).cursor();
long i = 0;
while (cursor.hasNext()) {
cursor.fwd();
this.pSharedMemory.setShort(offset + (i * Short.BYTES), cursor.get().get());
cursor.fwd();
i ++;
}
}
Expand All @@ -496,8 +496,8 @@ private void buildUint16(RandomAccessibleInterval<UnsignedShortType> tensor, boo
Cursor<UnsignedShortType> cursor = Views.flatIterable(tensor).cursor();
long i = 0;
while (cursor.hasNext()) {
cursor.fwd();
this.pSharedMemory.setShort(offset + (i * Short.BYTES), cursor.get().getShort());
cursor.fwd();
i ++;
}
}
Expand All @@ -515,8 +515,8 @@ private void buildInt32(RandomAccessibleInterval<IntType> tensor, boolean isFort
Cursor<IntType> cursor = Views.flatIterable(tensor).cursor();
long i = 0;
while (cursor.hasNext()) {
cursor.fwd();
this.pSharedMemory.setInt(offset + (i * Integer.BYTES), cursor.get().get());
cursor.fwd();
i ++;
}
}
Expand All @@ -534,8 +534,8 @@ private void buildUint32(RandomAccessibleInterval<UnsignedIntType> tensor, boole
Cursor<UnsignedIntType> cursor = Views.flatIterable(tensor).cursor();
long i = 0;
while (cursor.hasNext()) {
cursor.fwd();
this.pSharedMemory.setInt(offset + (i * Integer.BYTES), cursor.get().getInt());
cursor.fwd();
i ++;
}
}
Expand All @@ -553,8 +553,8 @@ private void buildInt64(RandomAccessibleInterval<LongType> tensor, boolean isFor
Cursor<LongType> cursor = Views.flatIterable(tensor).cursor();
long i = 0;
while (cursor.hasNext()) {
cursor.fwd();
this.pSharedMemory.setLong(offset + (i * Long.BYTES), cursor.get().get());
cursor.fwd();
i ++;
}
}
Expand All @@ -572,8 +572,8 @@ private void buildFloat32(RandomAccessibleInterval<FloatType> tensor, boolean is
Cursor<FloatType> cursor = Views.flatIterable(tensor).cursor();
long i = 0;
while (cursor.hasNext()) {
cursor.fwd();
this.pSharedMemory.setFloat(offset + (i * Float.BYTES), cursor.get().get());
cursor.fwd();
i ++;
}
}
Expand All @@ -591,8 +591,8 @@ private void buildFloat64(RandomAccessibleInterval<DoubleType> tensor, boolean i
Cursor<DoubleType> cursor = Views.flatIterable(tensor).cursor();
long i = 0;
while (cursor.hasNext()) {
cursor.fwd();
this.pSharedMemory.setDouble(offset + (i * Double.BYTES), cursor.get().get());
cursor.fwd();
i ++;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,8 @@ private void buildInt8(RandomAccessibleInterval<ByteType> tensor, boolean isFort
Cursor<ByteType> cursor = Views.flatIterable(tensor).cursor();
long i = 0;
while (cursor.hasNext()) {
cursor.fwd();
this.mappedPointer.setByte(offset + (i ++), cursor.get().get());
cursor.fwd();
}
}

Expand Down Expand Up @@ -563,8 +563,8 @@ private void buildInt16(RandomAccessibleInterval<ShortType> tensor, boolean isFo
Cursor<ShortType> cursor = Views.flatIterable(tensor).cursor();
long i = 0;
while (cursor.hasNext()) {
cursor.fwd();
this.mappedPointer.setShort(offset + (i * Short.BYTES), cursor.get().get());
cursor.fwd();
i ++;
}
}
Expand All @@ -582,8 +582,8 @@ private void buildUint16(RandomAccessibleInterval<UnsignedShortType> tensor, boo
Cursor<UnsignedShortType> cursor = Views.flatIterable(tensor).cursor();
long i = 0;
while (cursor.hasNext()) {
cursor.fwd();
this.mappedPointer.setShort(offset + (i * Short.BYTES), cursor.get().getShort());
cursor.fwd();
i ++;
}
}
Expand All @@ -601,8 +601,8 @@ private void buildInt32(RandomAccessibleInterval<IntType> tensor, boolean isFort
Cursor<IntType> cursor = Views.flatIterable(tensor).cursor();
long i = 0;
while (cursor.hasNext()) {
cursor.fwd();
this.mappedPointer.setInt(offset + (i * Integer.BYTES), cursor.get().get());
cursor.fwd();
i ++;
}
}
Expand All @@ -620,8 +620,8 @@ private void buildUint32(RandomAccessibleInterval<UnsignedIntType> tensor, boole
Cursor<UnsignedIntType> cursor = Views.flatIterable(tensor).cursor();
long i = 0;
while (cursor.hasNext()) {
cursor.fwd();
this.mappedPointer.setInt(offset + (i * Integer.BYTES), cursor.get().getInt());
cursor.fwd();
i ++;
}
}
Expand All @@ -639,8 +639,8 @@ private void buildInt64(RandomAccessibleInterval<LongType> tensor, boolean isFor
Cursor<LongType> cursor = Views.flatIterable(tensor).cursor();
long i = 0;
while (cursor.hasNext()) {
cursor.fwd();
this.mappedPointer.setLong(offset + (i * Long.BYTES), cursor.get().get());
cursor.fwd();
i ++;
}
}
Expand All @@ -658,8 +658,8 @@ private void buildFloat32(RandomAccessibleInterval<FloatType> tensor, boolean is
Cursor<FloatType> cursor = Views.flatIterable(tensor).cursor();
long i = 0;
while (cursor.hasNext()) {
cursor.fwd();
this.mappedPointer.setFloat(offset + (i * Float.BYTES), cursor.get().get());
cursor.fwd();
i ++;
}
}
Expand All @@ -677,8 +677,8 @@ private void buildFloat64(RandomAccessibleInterval<DoubleType> tensor, boolean i
Cursor<DoubleType> cursor = Views.flatIterable(tensor).cursor();
long i = 0;
while (cursor.hasNext()) {
cursor.fwd();
this.mappedPointer.setDouble(offset + (i * Double.BYTES), cursor.get().get());
cursor.fwd();
i ++;
}
}
Expand Down

0 comments on commit 54c8798

Please sign in to comment.