Libraryless. Click here for Pure Java version (5332L/29K).
static <A> Matrix<A> listToMatrix(int w, L<A> data) { int n = l(data); int h = n/w; if (w*h != n) fail("Bad size", +n, +w, +h); ret ListToMatrix(w, h, data); }
Began life as a copy of #1033120
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1033239 |
| Snippet name: | listToMatrix |
| Eternal ID of this version: | #1033239/4 |
| Text MD5: | 471d1db374992303734a67f6a8c30552 |
| Transpilation MD5: | 6e2b07785b6c14f8ad30aee67e809395 |
| 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:05:43 |
| Source code size: | 172 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 389 / 520 |
| Version history: | 3 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1033379 - ListToMatrix #1033380 - listToMatrix_rows |