Skip to content

Commit

Permalink
Bugfix in writeMatrixHeader methods
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-zobel committed Mar 19, 2024
1 parent 8b6d3b7 commit 0ace82c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>net.sourceforge.streamsupport</groupId>
<artifactId>jamu</artifactId>
<packaging>jar</packaging>
<version>1.4.4</version>
<version>1.4.5-SNAPSHOT</version>
<name>JAMU</name>
<description>Java Matrix Utilities built on top of Intel MKL</description>
<url>https://github.com/stefan-zobel/JAMU/</url>
Expand Down
6 changes: 1 addition & 5 deletions src/main/java/net/jamu/matrix/IO.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Stefan Zobel
* Copyright 2020, 2024 Stefan Zobel
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -38,9 +38,7 @@ static long writeMatrixHeaderB(int rows, int cols, int datatype,
os.write(BIG_ENDIAN);
os.write(datatype);
putIntB(rows, bytes, os);
os.write(bytes, 0, 4);
putIntB(cols, bytes, os);
os.write(bytes, 0, 4);
return 10L;
}

Expand All @@ -50,9 +48,7 @@ static long writeMatrixHeaderL(int rows, int cols, int datatype,
os.write(LITTLE_ENDIAN);
os.write(datatype);
putIntL(rows, bytes, os);
os.write(bytes, 0, 4);
putIntL(cols, bytes, os);
os.write(bytes, 0, 4);
return 10L;
}

Expand Down

0 comments on commit 0ace82c

Please sign in to comment.