Java Double Number Create toDouble(float[] v)

Here you can find the source of toDouble(float[] v)

Description

to Double

License

Open Source License

Declaration

public static double[] toDouble(float[] v) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static double[] toDouble(float[] v) {
        final double[] ans = new double[v.length];
        for (int k = 0; k < v.length; k++)
            ans[k] = (double) v[k];
        return (ans);
    }//w  ww .j a v a2s . c o  m

    public static double[] toDouble(long[] v) {
        final double[] ans = new double[v.length];
        for (int k = 0; k < v.length; k++)
            ans[k] = (double) v[k];
        return (ans);
    }

    public static double[] toDouble(int[] v) {
        final double[] ans = new double[v.length];
        for (int k = 0; k < v.length; k++)
            ans[k] = (double) v[k];
        return (ans);
    }

    public static double[][] toDouble(float[][] v) {
        final double[][] ans = new double[v.length][];
        for (int k = 0; k < v.length; k++)
            ans[k] = toDouble(v[k]);
        return (ans);
    }

    public static double[][] toDouble(long[][] v) {
        final double[][] ans = new double[v.length][];
        for (int k = 0; k < v.length; k++)
            ans[k] = toDouble(v[k]);
        return (ans);
    }

    public static double[][] toDouble(int[][] v) {
        final double[][] ans = new double[v.length][];
        for (int k = 0; k < v.length; k++)
            ans[k] = toDouble(v[k]);
        return (ans);
    }
}

Related

  1. toDouble(float in1)
  2. toDouble(float[] a)
  3. toDouble(float[] a)
  4. toDouble(float[] array)
  5. toDouble(float[] in)
  6. toDouble(float[] val, int days, int start)
  7. toDouble(float[][] a)
  8. toDouble(int x)
  9. toDouble(int[] array)