Here you can find the source of castShortToDouble(short[] x)
public static double[] castShortToDouble(short[] x)
//package com.java2s; //License from project: Open Source License public class Main { public static double[] castShortToDouble(short[] x) { double[] res = new double[x.length]; for (int i = 0; i < x.length; i++) res[i] = x[i];//from ww w .j av a 2 s . c o m return res; } }