Here you can find the source of multiplyInPlace(double[] img, double val)
public static final void multiplyInPlace(double[] img, double val)
//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; } } }