Here you can find the source of pow(float[][] in)
public static void pow(float[][] in)
//package com.java2s; //License from project: Open Source License public class Main { public static void pow(float[][] in) { int width = in[0].length; int height = in.length; for (int yy = 0; yy < height; yy++) { for (int xx = 0; xx < width; xx++) { in[yy][xx] = in[yy][xx] * in[yy][xx]; }//from w w w .ja va 2 s . c o m } } public static void pow(float[] in) { int height = in.length; for (int yy = 0; yy < height; yy++) { in[yy] = in[yy] * in[yy]; } } public static void pow(double[] in) { int height = in.length; for (int yy = 0; yy < height; yy++) { in[yy] = in[yy] * in[yy]; } } }