Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 4 KB

P2319_Check_Matrix.md

File metadata and controls

25 lines (22 loc) · 4 KB

Summary

Solution Link
APL checkMatrix ← {(1⌊⍵)≡(⊖⌈⊢)∘.=⍨⍳≢⍵} Link
Kap CheckMatrix ⇐ {(1⌊⍵)≡⌽⍛⌈=⌻⍨⍳≢⍵}
TinyAPL checkMatrix ← {(1⌊⍵)≡⊖⊸⌈=⊞⍨⍳≢⍵}
J checkMatrix =. {{ (1<.y)-:(|.>.])=/~i.#y }} Link
BQN CheckMatrix ← {(1⌊𝕩)≡⌽⊸⌈=⌜˜↕≠𝕩} Link
Uiua CheckMatrix ← ≅↧1∶↥⇌.⊞=.⇡⧻.
Q checkMatrix: {a: til count x; i: a =/:\: a; m: i | reverse i; m ~ x <> 0 }
Julia ➡️➡️ Link
MATLAB ➡️➡️ Link
NumPy ➡️➡️ Link
R ➡️➡️ Link
Nial ➡️➡️ Link
Futhark ➡️➡️ Link
Ivy ➡️➡️ Link
SaC ➡️➡️ Link
ArrayFire ➡️➡️ Link
MatX 🔜 🔜