Here you can find the source of convertFloatMatrixToDoubles(float[][] input, int dimRows, int dimColoumns)
public static double[][] convertFloatMatrixToDoubles(float[][] input, int dimRows, int dimColoumns)
//package com.java2s; //License from project: Open Source License public class Main { public static double[][] convertFloatMatrixToDoubles(float[][] input, int dimRows, int dimColoumns) { if (input == null) { return null; // Or throw an exception - your choice }//from w w w. ja v a2 s . c o m double[][] output = new double[dimRows][dimColoumns]; for (int i = 0; i < dimRows; i++) { for (int j = 0; j < dimColoumns; j++) { output[i][j] = input[i][j]; } } return output; } }