Here you can find the source of multiply(double[] a, double m)
public static double[] multiply(double[] a, double m)
//package com.java2s; //License from project: Open Source License public class Main { /**//ww w . j a v a 2 s . co m * Multiply each element in the given array by the given factor. The original array is returned with altered values. */ public static double[] multiply(double[] a, double m) { for (int i = 0; i < a.length; i++) { a[i] *= m; } return a; } }