Skip to content

Commit

Permalink
add new bubble sort, better triang mats
Browse files Browse the repository at this point in the history
  • Loading branch information
abrudz committed Dec 11, 2024
1 parent 48cf7cf commit b0d0701
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion table.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,10 @@ M(⊢∘××⊣×∘⌊0.5+∘|÷⍨)N Rounding N to nearest M (favouring away f
(~0∊×∘|≤∘.≤⍨∘⍳∘≢)Bm Is Bm an upper triangular matrix with diagonal? Tacit Monadic Function Boolean/Logical testif triangle NE northeast north-east table triangular? https://tio.run/##SyzI0U2pTMzJT////1Hf1EdtExQ06gwedXQdnv6oY0bNo84lQEoPRPWuALIe9W4GkZ2LNBWgqo0VjB/1bjFUQINcFBtmACUNKDMMyRgwaUCZYXBjIPD/fwA
(~0∊×∘|≤∘.≥⍨∘⍳∘≢)Bm Is Bm a lower triangular matrix with diagonal? Tacit Monadic Function Boolean/Logical testif triangle SW southwest south-west table triangular? https://tio.run/##SyzI0U2pTMzJT////1Hf1EdtExQ06gwedXQdnv6oY0bNo84lQErvUefSR70rgKxHvZtBZOciTQWoamMF40e9WwwV0CAXRYYZACHIGAPKDTOAGgY3knLDkIz8/x8A
(~0∊×∘|≤∘.>⍨∘⍳∘≢)Bm Is Bm a lower triangular matrix without diagonal? Tacit Monadic Function Boolean/Logical testif triangle SW southwest south-west table triangular? remove strict removing erasing erase eliminate eliminating delete deleting https://tio.run/##SyzI0U2pTMzJT////1Hf1EdtExQ06gwedXQdnv6oY0bNo84lQErP7lHvCiD9qHcziOxcpKkAVWusYPyod4uhAhrkosAoAyAEGWJAqVEGUKPgBlJqFJKB//8DAA
(⊢≡⊢×∘.<⍨∘⍳∘≢)Nm Is Nm an upper triangular matrix without diagonal? Tacit Monadic Function Boolean/Logical testif triangle NE northeast north-east table triangular? remove strict removing erasing erase eliminate eliminating delete deleting https://tio.run/##SyzI0U2pTMzJT////1Hf1EdtExQ0HnUtetS5EEgenv6oY4aezaPeFUD6Ue9mENm5SFMBqtBYwfhR7xZDBTTIRYk5BlDSgGxzkEwAkwZkmwM3AQL//wcA
(⊢≡⊢×∘.≤⍨∘⍳∘≢)Nm Is Nm an upper triangular matrix with diagonal? Tacit Monadic Function Boolean/Logical testif triangle NE northeast north-east table triangular? https://tio.run/##SyzI0U2pTMzJT////1Hf1EdtExQ0HnUtetS5EEgenv6oY4beo84lj3pXAFmPejeDyM5FmgpQpcYKxo96txgqoEEuykwygJIGFJiEZAaYNKDAJLgZEPj/PwA
(⊢≡⊢×∘.≥⍨∘⍳∘≢)Nm Is Nm a lower triangular matrix with diagonal? Tacit Monadic Function Boolean/Logical testif triangle SW southwest south-west table triangular? https://tio.run/##SyzI0U2pTMzJT////1Hf1EdtExQ0HnUtetS5EEgenv6oY4beo86lj3pXAFmPejeDyM5FmgpQpcYKxo96txgqoEEu8k0yAEKQGQYUmmQANQluHoUmIZn3/z8A
(⊢≡⊢×∘.>⍨∘⍳∘≢)Nm Is Nm a lower triangular matrix without diagonal? Tacit Monadic Function Boolean/Logical testif triangle SW southwest south-west table triangular? remove strict removing erasing erase eliminate eliminating delete deleting https://tio.run/##SyzI0U2pTMzJT////1Hf1EdtExQ0HnUtetS5EEgenv6oY4ae3aPeFUD6Ue9mENm5SFMBqtBYwfhR7xZDBTTIhcUcwoYYACFIuwFuQ4hwjAHUHLhpFJmDZNr//wA
M(+⌿⊣∘.*⍨∘∪⊢∨⊢∘⍳)Js Sum of M'th powers of positive divisors of Js Tacit Dyadic Function Mathematical sigma_x sigma_2 sigma_3 sigma_4 sigmax sigma2 sigma3 sigma4 σₓ(n) σ₂(n) σ₃(n) σ₄(n)
((×⌿∘!-∘1)÷∘!¯1++⌿)N Multivariate Beta Function Tacit Dyadic Function Mathematical B() Β() beta() Ꞵ
Mv(|2÷⍨+.×∘(¯1∘⌽-1∘⌽))Nv Area of a polygon given Mv,Nv endpoints Tacit Dyadic Function Mathematical shoelaceformula
Expand Down Expand Up @@ -2253,7 +2257,8 @@ X(f{⍺←⊢ ⋄ ⍺(⍺⍺⊣⊢)⍣⍵⍵⊢⍵}Bs)Y If: replace/apply if Bs
Is f{⍺←≢⍴⍵ ⋄ (⍺⊃⍴⍵)⍺⍺/[⍺]⍵}Y Reduction (/) with f in dimension Is (default: last), rank unchanged Dop Ambivalent Monadic Function, Dyadic Function Monadic Operator Function Application reduce insert over rowwise reducing folding axis row-wise horizontally
X(f{↑[⍵⍵](⊂[⍵⍵]⍺)⍺⍺⊂⍵}ax)Y Run f on axes of X Dop Dyadic Function Dyadic Operator Function Application onaxis apply dimensions
{X}(f{⍺←⊢ ⋄ 0::⍺ ⍵⍵ ⍵ ⋄ ⍺ ⍺⍺ ⍵}g)Y Adverse: Apply f but if it errors, apply g Dop Ambivalent Monadic Function,Dyadic Function Dyadic Operator System catch J assign onerror works noerror otherwise fallback fall-back
f{⌽@(1(⌽∨⊢)0<\⍤,2⍺⍺/⊢)⍣≡⍵}Y Stable bubble sort using custom comparison function f (true:left precedes right) Dop Monadic Function Monadic Operator Mathematical sinking customised customized defined sorting order
f{⍵⌷⍨⊂⍒∘.⍺⍺⍨⍵}Y Stable bubble sort using custom comparison function f (true:left precedes right) Dop Monadic Function Monadic Operator Mathematical sinking customised customized defined sorting order
f{⌽@(1(⌽∨⊢)0<\⍤,¯2⍺⍺/⊢)⍣≡⍵}Y Stable bubble sort using custom comparison function f (true:left precedes right) Dop Monadic Function Monadic Operator Mathematical sinking customised customized defined sorting order
(X{(⊂⍋(⍳≢⍵),⌊⍺⍺)⌷⍵,⍺⍺}Nv)Y Insert X at fractional positions Nv in Y (≢Nv)=≢X Dop Monadic Function Dyadic Operator Structural slotin
X(f{⍺ ⍺⍺{⍺ ⍺⍺⍣⍵⊢⍵⍵}⍵⍤0⊢⍵⍵}J)Y Power: apply X∘f on Y J times Dop Dyadic Function Dyadic Operator Function Application poweroperator while until inverse inversion application repeatedly repeating inverting iterating looping iterate array non-scalar multiple
I f{⍺⍺{⍺⍺⍣(⍵⍵ ⍵)⊢⍵}⍵⍵⍣⍺⊢⍵}g Y Power: Iterating f on Y while condition g Y is true but at most I times Dop Dyadic Function Dyadic Operator Function Application until count repeatedly apply application poweroperator stardiaeresis powerlimit while repeating looping limited counting iterate iteration https://tio.run/##SyzI0U2pTMzJT////1Hf1EdtExSMFHQedcwwUKh@1LsLiKDUo97FGo96twKRAhBrPupaBKRqISJAOZAKiJCChrndo85FmgqGQJOMuaCGWlLT0P//AQ
Expand Down

0 comments on commit b0d0701

Please sign in to comment.