Java Integer Create toInt(double[][] data)

Here you can find the source of toInt(double[][] data)

Description

to Int

License

Apache License

Declaration

public static int[][] toInt(double[][] data) 

Method Source Code

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

public class Main {
    public static int[][] toInt(double[][] data) {
        int[][] newdata = new int[data.length][];
        for (int r = 0; r < data.length; r++) {
            newdata[r] = new int[data[r].length];
            for (int c = 0; c < data[r].length; c++)
                newdata[r][c] = (int) data[r][c];
        }//  w ww  .  j a v a2 s  . co  m
        return newdata;
    }
}

Related

  1. toInt(double value)
  2. toInt(double[] arr)
  3. toInt(double[] array)
  4. toInt(double[] layer)
  5. toInt(double[] v)
  6. toInt(double[][] doubles)
  7. toInt(final Boolean value)
  8. toInt(final byte b)
  9. toInt(final byte b)