Libraryless. Click here for Pure Java version (2216L/14K).
1 | static double[] shortToDoubleArray(short[] a, int start, int end) { |
2 | double[] b = new[end-start]; |
3 | for (int i = start; i < end; i++) |
4 | b[i-start] = a[i]; |
5 | ret b; |
6 | } |
7 | |
8 | static double[] shortToDoubleArray(short[] a, IntRange r) { |
9 | ret shortToDoubleArray(a, r.start, r.end); |
10 | } |
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: | 222 / 303 |
Version history: | 1 change(s) |
Referenced in: | [show references] |