Here you can find the source of int2double(int[] ia)
Parameter | Description |
---|---|
ia | - the input vector of integers. |
public static double[] int2double(int[] ia)
//package com.java2s; public class Main { /**//from w ww. j a va2 s. c o m * Converts a vector of ints to doubles. * @param ia - the input vector of integers. * @return - the output vector of doubles. */ public static double[] int2double(int[] ia) { double[] out = new double[ia.length]; for (int i = 0; i < ia.length; i++) { out[i] = ia[i]; } return out; } }