summaryrefslogtreecommitdiffstats
path: root/vespajlib
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-12-19 13:16:07 +0100
committerJon Bratseth <bratseth@oath.com>2018-12-19 13:16:07 +0100
commit419907c0b57da52465af1d625fc70b13a6f54c4c (patch)
tree3de0d7b597aeb8be23deade29ec0d2933d65950e /vespajlib
parent26c6781168f21eb58bb86f1c40babd3a38e03dfd (diff)
String.format is locale dependent (and more verbose)
Diffstat (limited to 'vespajlib')
-rw-r--r--vespajlib/src/main/java/com/yahoo/tensor/functions/ScalarFunctions.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/vespajlib/src/main/java/com/yahoo/tensor/functions/ScalarFunctions.java b/vespajlib/src/main/java/com/yahoo/tensor/functions/ScalarFunctions.java
index 3a66eef258d..eabeb8905f7 100644
--- a/vespajlib/src/main/java/com/yahoo/tensor/functions/ScalarFunctions.java
+++ b/vespajlib/src/main/java/com/yahoo/tensor/functions/ScalarFunctions.java
@@ -245,7 +245,7 @@ public class ScalarFunctions {
@Override
public double applyAsDouble(double operand) { return scale * (operand >= 0.0 ? operand : alpha * (Math.exp(operand)-1)); }
@Override
- public String toString() { return String.format("f(a)(%f * if(a >= 0, a, %f*(exp(a)-1)))", scale, alpha); }
+ public String toString() { return "f(a)(" + scale + " * if(a >= 0, a, " + alpha + " * (exp(a) - 1)))"; }
}
public static class Sin implements DoubleUnaryOperator {
@@ -298,8 +298,6 @@ public class ScalarFunctions {
}
-
-
// Variable-length operators -----------------------------------------------------------------------------
public static class EqualElements implements Function<List<Long>, Double> {