}
}
}
+
+ /**
+ * Multiply every entry in the matrix by the given value. This method is not
+ * thread-safe.
+ */
+ @Override
+ public void multiply(double d)
+ {
+ for (double[] row : value)
+ {
+ if (row != null)
+ {
+ for (int i = 0; i < row.length; i++)
+ {
+ row[i] *= d;
+ }
+ }
+ }
+ }
}