Java Array Multiply multiplyArray(float[] array, float num)

Here you can find the source of multiplyArray(float[] array, float num)

Description

multiply Array

License

Open Source License

Parameter

Parameter Description
array the to multiply array
num the multiplier

Return

the divided array

Declaration

public static float[] multiplyArray(float[] array, float num) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**/* w w w  . j  a v a 2 s. c  o m*/
     * @param array the to multiply array
     * @param num   the multiplier
     * @return the divided array
     */
    public static float[] multiplyArray(float[] array, float num) {
        float[] result = new float[array.length];
        for (int i = 0; i < array.length; i++)
            result[i] = array[i] * num;
        return result;
    }
}

Related

  1. multiply(long[] x, long[] y, long[] z)
  2. multiply(long[] x, long[] y, long[] z)
  3. multiply(String[] strings, String placeholder, String[] replacements)
  4. multiplyAndSum(double[] r1, double[] r2)
  5. multiplyAndSum(final double[] d, final double scale)
  6. multiplyByScalar(double scalar, double[] vector)
  7. multiplyBytes(byte[] in, int count, int mul)
  8. multiplyComplex(double[] one, double[] two)
  9. multiplyComplexVectors(float[] cA, float[] cB, long limit)