Libraryless. Click here for Pure Java version (2216L/14K).
static double[] shortToDoubleArray(short[] a, int start, int end) { double[] b = new[end-start]; for (int i = start; i < end; i++) b[i-start] = a[i]; ret b; } static double[] shortToDoubleArray(short[] a, IntRange r) { ret shortToDoubleArray(a, r.start, r.end); }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1026893 |
Snippet name: | shortToDoubleArray |
Eternal ID of this version: | #1026893/2 |
Text MD5: | 553420d495ccc960baf43ca6d7c8d00c |
Transpilation MD5: | 6fe9b9fffd81e0c74e1f4e9765d03bc2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-02 14:58:52 |
Source code size: | 285 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 221 / 301 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1033248 - doubleToShortArray_iround |