Java Float Number Convert to convertFloatMatrixToDoubles(float[][] input, int dimRows, int dimColoumns)

Here you can find the source of convertFloatMatrixToDoubles(float[][] input, int dimRows, int dimColoumns)

Description

convert Float Matrix To Doubles

License

Open Source License

Declaration

public static double[][] convertFloatMatrixToDoubles(float[][] input,
            int dimRows, int dimColoumns) 

Method Source Code

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

Related

  1. convertFloatArrayToString(float[] value, String separator)
  2. convertFloatBitsToHFloat(final int floatBits)
  3. convertFloatDouble(float[] in)
  4. convertFloatFromBytes(byte[] byteArray)
  5. convertFloatFromStream(byte[] stream, int intStart, int decStart, int intNumbers, int decNumbers)
  6. convertFloatsToFixed(float[] values)
  7. convertFloatToHex(float floatValue)
  8. convertFloatToString(float value)
  9. convertFloatValue(String data)