public static void scaleArray ( final double [ ] array , final double factor ) { for ( int i = 0 ; i < array . length ; i ++ ) { array [ i ] *= factor ; } }
Multiplies elements of array by specified factor