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