Mercurial > hg > may
changeset 594:495cc8973458
Remove a couple of unnecessary things
author | Chris Cannam |
---|---|
date | Wed, 03 Dec 2014 19:15:51 +0000 |
parents | 386c29180184 |
children | 3b1f2aa8d36b |
files | src/may/bits/VectorBits.java src/may/vamp.yeti |
diffstat | 2 files changed, 6 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/src/may/bits/VectorBits.java Fri Sep 12 08:16:21 2014 +0100 +++ b/src/may/bits/VectorBits.java Wed Dec 03 19:15:51 2014 +0000 @@ -9,7 +9,6 @@ ("Found vector of length " + v2.length + ", but all so far in this arithmetic operation have had length " + v1.length); -// e.printStackTrace(); throw e; } } @@ -25,31 +24,28 @@ public static void multiplyBy(double[] out, double[] in) { checkLengths(out, in); - for (int i = 0; i < in.length && i < out.length; ++i) { + for (int i = 0; i < in.length; ++i) { out[i] *= in[i]; } - for (int i = in.length; i < out.length; ++i) { - out[i] *= 0.0; - } } public static void divideBy(double[] out, double[] in) { checkLengths(out, in); - for (int i = 0; i < in.length && i < out.length; ++i) { + for (int i = 0; i < in.length; ++i) { out[i] /= in[i]; } } public static void addTo(double[] out, double[] in) { checkLengths(out, in); - for (int i = 0; i < in.length && i < out.length; ++i) { + for (int i = 0; i < in.length; ++i) { out[i] += in[i]; } } public static void subtractFrom(double[] out, double[] in) { checkLengths(out, in); - for (int i = 0; i < in.length && i < out.length; ++i) { + for (int i = 0; i < in.length; ++i) { out[i] -= in[i]; } }
--- a/src/may/vamp.yeti Fri Sep 12 08:16:21 2014 +0100 +++ b/src/may/vamp.yeti Wed Dec 03 19:15:51 2014 +0000 @@ -313,8 +313,8 @@ processFile key output filename = processStream key output (af.open filename); -processStreamStructured key output filename = - vamppost.postprocess (processStream key output filename); +processStreamStructured key output stream = + vamppost.postprocess (processStream key output stream); processFileStructured key output filename = vamppost.postprocess (processFile key output filename);