code: public static double[] minus(final double[] v1, final double s1) {
      final double[] result = new double[v1.length];
      for(int i = 0; i < v1.length; i++) {
        result[i] = v1[i] - s1;
      }
      return result;
    }
docs: Subtract component-wise v1 - s1.
  
  @param v1 original vector
  @param s1 Value to subtract
  @return v1 - s1