Libraryless. Click here for Pure Java version (5217L/29K).
static <A> L<Pt> matricesDifferingPoints(Matrix<A> a, Matrix<A> b) { if (a == null || b == null) null; assertSameSize(a, b); int w = a.getWidth(), h = a.getHeight(); new L<Pt> l; for y to h: for x to w: if (!eq(a.get(x, y), b.get(x, y))) l.add(pt(x, y)); ret l; }
Began life as a copy of #1033650
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033651 |
Snippet name: | matricesDifferingPoints - give all differing points |
Eternal ID of this version: | #1033651/1 |
Text MD5: | 186fc9615ad0ab248b7151645a09bcac |
Transpilation MD5: | ad0fa0d0ef44785369401a1a7d38d533 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-12-25 22:53:35 |
Source code size: | 303 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 120 / 193 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |