Java Number Power pow(float[][] in)

Here you can find the source of pow(float[][] in)

Description

pow

License

Open Source License

Declaration

public static void pow(float[][] in) 

Method Source Code

//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];
        }
    }
}

Related

  1. pow(final long base, final long exponent)
  2. pow(float a, float b)
  3. Pow(float base, float exponent)
  4. pow(float x, int y)
  5. pow(float[] inData, float rate)
  6. pow(int a, int b)
  7. pow(int a, int b, int modulus)
  8. pow(int b, int e)
  9. pow(int base, int exp)