From 0ace82c11b2594c7ac5c18fb916a5e8e39530dd8 Mon Sep 17 00:00:00 2001 From: stefan-zobel Date: Tue, 19 Mar 2024 22:16:09 +0100 Subject: [PATCH] Bugfix in `writeMatrixHeader` methods --- pom.xml | 2 +- src/main/java/net/jamu/matrix/IO.java | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index dda2f4b..4002df4 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ net.sourceforge.streamsupport jamu jar - 1.4.4 + 1.4.5-SNAPSHOT JAMU Java Matrix Utilities built on top of Intel MKL https://github.com/stefan-zobel/JAMU/ diff --git a/src/main/java/net/jamu/matrix/IO.java b/src/main/java/net/jamu/matrix/IO.java index 00dec4b..221bb44 100644 --- a/src/main/java/net/jamu/matrix/IO.java +++ b/src/main/java/net/jamu/matrix/IO.java @@ -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. @@ -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; } @@ -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; }