Java Array Value Add ArrayScale(float[] a, float b)

Here you can find the source of ArrayScale(float[] a, float b)

Description

Array Scale

License

Open Source License

Declaration

public static float[] ArrayScale(float[] a, float b) 

Method Source Code

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

public class Main {
    public static float[] ArrayScale(float[] a, float b) {
        float[] ret = new float[a.length];
        for (int i = 0; i < a.length; i++) {
            ret[i] = a[i] * b;/*from  ww  w .j  a  va 2s .  c  o m*/
        }

        return ret;
    }
}

Related

  1. arrayAdd(double[] d1, double d2[])
  2. arrayAdd(final Double[] first, final Double[] second)
  3. ArrayAdd(float[] a, int[] b)