Libraryless. Click here for Pure Java version (5332L/29K).
static <A> Matrix<A> listToMatrix_rows(int h, L<A> data) { int n = l(data); int w = n/h; if (w*h != n) fail("Bad size", +n, +w, +h); ret ListToMatrix(w, h, data); }
Began life as a copy of #1033239
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033380 |
Snippet name: | listToMatrix_rows |
Eternal ID of this version: | #1033380/1 |
Text MD5: | 4571bf5e69f2a60ac17556cd9035e9df |
Transpilation MD5: | 11289a03e4fb5d91fcfdadff9481ef45 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-27 00:06:19 |
Source code size: | 177 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 124 / 181 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |