Converts the double array 'a' to a float array.
(double[] a)
| 130 | |
| 131 | /** Converts the double array 'a' to a float array. */ |
| 132 | public static float[] toFloat(double[] a) { |
| 133 | if (a==null) |
| 134 | return null; |
| 135 | int len = a.length; |
| 136 | float[] f = new float[len]; |
| 137 | for (int i=0; i<len; i++) |
| 138 | f[i] = (float)a[i]; |
| 139 | return f; |
| 140 | } |
| 141 | |
| 142 | /** Adds a number to all array elements */ |
| 143 | public static void addToArray(float[] a, float value) { |
no outgoing calls
no test coverage detected