Libraryless. Click here for Pure Java version (4120L/23K).
static Channels<Complex> complexChannels(Channels<Double> re, Channels<Double> im) { if (re == null && im == null) null; int channels = assertEquals(re.channels(), im.channels()); ret mapChannels(channels, c -> complex(re == null ? 0 : re.get(c), im == null ? 0 : im.get(c))); }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1032993 |
Snippet name: | complexChannels |
Eternal ID of this version: | #1032993/2 |
Text MD5: | 27d6bf39625dc0f5355486dac20a9df3 |
Transpilation MD5: | 8c51406dfe1c3e01e5aad7d3d49c6be3 |
Author: | stefan |
Category: | javax / audio analysis |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-17 19:05:33 |
Source code size: | 288 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 167 / 243 |
Version history: | 1 change(s) |
Referenced in: | [show references] |