Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1026893 // shortToDoubleArray

JavaX fragment (include) [tags: use-pretranspiled]

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: 220 / 300
Version history: 1 change(s)
Referenced in: [show references]