Libraryless. Click here for Pure Java version (4120L/23K).
1  | static Channels<Complex> complexChannels(Channels<Double> re, Channels<Double> im) {
 | 
2  | if (re == null && im == null) null;  | 
3  | int channels = assertEquals(re.channels(), im.channels());  | 
4  | ret mapChannels(channels, c -> complex(re == null ? 0 : re.get(c), im == null ? 0 : im.get(c)));  | 
5  | }  | 
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: | 384 / 509 | 
| Version history: | 1 change(s) | 
| Referenced in: | [show references] |