Java Array Multiply multiplyInPlace(double[] img, double val)

Here you can find the source of multiplyInPlace(double[] img, double val)

Description

multiply In Place

License

Apache License

Declaration

public static final void multiplyInPlace(double[] img, double val) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static final void multiplyInPlace(double[] img, double val) {
        for (int i = 0; i < img.length; i++) {
            img[i] *= val;
        }//from   w w w .ja va  2  s.c o  m
    }

    public static final void multiplyInPlace(float[] img, float val) {
        for (int i = 0; i < img.length; i++) {
            img[i] *= val;
        }
    }
}

Related

  1. multiplyComplex(double[] one, double[] two)
  2. multiplyComplexVectors(float[] cA, float[] cB, long limit)
  3. multiplycst(int k, double[] t)
  4. multiplyElementwise(double[] a, int[] b)
  5. multiplyHarmonics(float[] powerSpectrumInOut, int nHarmonics)
  6. multiplyInto(double[] out, double[] a, double[] b)
  7. multiplyP(int[] x)
  8. multiplyP(int[] x)
  9. multiplyP(int[] x)