Java Array Multiply multiply(float[] in, float f)

Here you can find the source of multiply(float[] in, float f)

Description

multiply

License

GNU General Public License

Declaration

private static float[] multiply(float[] in, float f) 

Method Source Code

//package com.java2s;
/*//from   w w w .  j  ava2 s.c  om
CCH World Factory - GPL
    
Copyright (C) 2014 Christopher Collin Hall
email: explosivegnome@yahoo.com
    
CCH World Factory - GPL is distributed under the GNU General Public 
License (GPL) version 3. A non-GPL branch of the CCH World Factory 
also exists. For non-GPL licensing options, contact the copyright 
holder, Christopher Collin Hall (explosivegnome@yahoo.com). 
    
CCH World Factory - GPL is free software: you can redistribute it 
and/or modify it under the terms of the GNU General Public License 
as published by the Free Software Foundation, either version 3 of 
the License, or (at your option) any later version.
    
CCH World Factory - GPL is distributed in the hope that it will be 
useful, but WITHOUT ANY WARRANTY; without even the implied warranty 
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
    
You should have received a copy of the GNU General Public License
along with CCH World Factory - GPL.  If not, see 
<http://www.gnu.org/licenses/>.
    
*/

public class Main {
    private static float[] multiply(float[] in, float f) {
        float[] out = new float[in.length];
        for (int i = 0; i < in.length; i++) {
            out[i] = in[i] * f;
        }
        return out;
    }
}

Related

  1. multiply(final double[] x, final double[] y)
  2. multiply(final float[] complexA, final float[] complexB, final boolean overwriteA)
  3. multiply(final int[] numbers)
  4. multiply(float[] array, float factor)
  5. multiply(float[] array, int multiplier)
  6. multiply(float[] mat, float[] mat2, float[] dest)
  7. multiply(float[] v, double factor)
  8. multiply(float[] v1, float[] v2)
  9. multiply(long[] x, long[] y, long[] z)