This is an automated email from the ASF dual-hosted git repository.
baunsgaard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/systemds.git
The following commit(s) were added to refs/heads/main by this push:
new 440017a963 [MINOR] Correct formatting of MapToByte
440017a963 is described below
commit 440017a9633bc88a0a8eebae97b3ecb618079219
Author: Sebastian Baunsgaard <[email protected]>
AuthorDate: Mon Jan 6 15:24:13 2025 +0100
[MINOR] Correct formatting of MapToByte
---
.../sysds/runtime/compress/colgroup/mapping/MapToByte.java | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git
a/src/main/java/org/apache/sysds/runtime/compress/colgroup/mapping/MapToByte.java
b/src/main/java/org/apache/sysds/runtime/compress/colgroup/mapping/MapToByte.java
index 3a28c91c59..f8569be67b 100644
---
a/src/main/java/org/apache/sysds/runtime/compress/colgroup/mapping/MapToByte.java
+++
b/src/main/java/org/apache/sysds/runtime/compress/colgroup/mapping/MapToByte.java
@@ -95,18 +95,17 @@ public class MapToByte extends AMapToData {
}
@Override
- public void set(int l, int u, int off, AMapToData tm){
- if(tm instanceof MapToByte){
- MapToByte tbm = (MapToByte)tm;
+ public void set(int l, int u, int off, AMapToData tm) {
+ if(tm instanceof MapToByte) {
+ MapToByte tbm = (MapToByte) tm;
byte[] tbv = tbm._data;
for(int i = l; i < u; i++, off++) {
- _data[i] = tbv[off];
+ _data[i] = tbv[off];
}
}
- else{
-
+ else {
for(int i = l; i < u; i++, off++) {
- _data[i] = (byte)tm.getIndex(off);
+ _data[i] = (byte) tm.getIndex(off);
}
}
}
@@ -321,7 +320,6 @@ public class MapToByte extends AMapToData {
c[r + 7] += values[getIndex(r + 7)];
}
-
@Override
public void decompressToRange(double[] c, int rl, int ru, int offR,
double[] values) {
// OVERWRITTEN FOR JIT COMPILE!