Skip to content

Commit 9d37cfc

Browse files
committed
Simplify definitions and deprecate Perms
1 parent 0b10d41 commit 9d37cfc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib.ua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,17 @@ MCof ← ⍥¯⊞≠.◿2°⊏MSquarify≡(MDet MSquarify≡⊡⊙¤⊚¬⊞↥
5454
# Dot product
5555
Dot ← /+×
5656
# Cross product
57-
Cross ← ↻2-∩(×↻2)⤙.
57+
Cross ← ↻2-∩(×↻2)◡:
5858
# Matrix product
5959
#
6060
# Computes AB
6161
# ? A B
62-
Mmp ← ⌅(⍜⍉⊞Dot:|⍜⍉⊞Dot: MInv)
62+
Mmp ← |2 ⌅(⍜⍉⊞Dot:|Mmp MInv)
6363
# Matrix-vector product
6464
#
6565
# Computes MV where V is represented as a 1D list of numbers
6666
# ? M V
67-
Mvp ← ⌅(Dot⍉|Dot⍉MInv)
67+
Mvp ← |2 ⌅(Dot⍉|Mvp MInv)
6868
# Matrix power
6969
# ? P M
7070
Mpow ← ⊙◌⍥(⊞Dot⤙⍉):⊞=.⇡⧻⤙∘
@@ -360,6 +360,7 @@ NormalCdf ← ÷2+1Erf÷×√2⊙-
360360

361361
# Permutation indices of N items
362362
# Indices ? N
363+
# Deprecated! Use `⧅≠⟜⇡` instead.
363364
Perms ← ♭₂⍉∧(≡↻⇡⟜↯+1⟜⊂):¤¤°⊂⇡
364365

365366
# Po-Shen quadratic solver

0 commit comments

Comments
 (0)