Java Array Divide divide(float[][][][] img, float val)

Here you can find the source of divide(float[][][][] img, float val)

Description

divide

License

Apache License

Declaration

public static final void divide(float[][][][] img, float val) 

Method Source Code

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

public class Main {
    public static final void divide(float[][][][] img, float val) {
        for (int i = 0; i < img.length; i++)
            for (int j = 0; j < img[0].length; j++)
                for (int k = 0; k < img[0][0].length; k++)
                    for (int l = 0; l < img[0][0][0].length; l++) {
                        img[i][j][k][l] /= val;
                    }//  w  w  w.  ja  va  2  s  .c  om
    }

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

    public static final void divide(float[][][][] img, double val) {
        for (int i = 0; i < img.length; i++)
            for (int j = 0; j < img[0].length; j++)
                for (int k = 0; k < img[0][0].length; k++)
                    for (int l = 0; l < img[0][0][0].length; l++) {
                        img[i][j][k][l] /= val;
                    }
    }

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

    public static final void divide(float[][][] img, double val) {
        for (int i = 0; i < img.length; i++)
            for (int j = 0; j < img[0].length; j++)
                for (int k = 0; k < img[0][0].length; k++) {
                    img[i][j][k] /= val;
                }
    }

    public static final void divide(double[][] img, double val) {
        for (int i = 0; i < img.length; i++)
            for (int j = 0; j < img[0].length; j++) {
                img[i][j] /= val;
            }
    }

    public static final void divide(double[] img, double val) {
        for (int i = 0; i < img.length; i++) {
            img[i] /= val;
        }
    }

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

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

Related

  1. divide(double[][] numerator, double[][] denominator)
  2. divide(final double[] numerators, final double[] denominators)
  3. divide(final double[] v1, final double[] v2)
  4. divide(float[] array, float divident)
  5. divide(float[][] a, float num)
  6. divide(int[] array1, int[] array2)
  7. divide(long[] array, double value)
  8. divideAbsolute(double[] one, double[] two)
  9. divideAndConquer(int[] array, int num)