Matrix Inverse/Divide
|
||||
| R is a numeric scalar, vector or matrix; otherwise signal a RANK ERROR. If R is a matrix, ≥/⍴R must be true; otherwise signal a LENGTH ERROR. | ||||
| Z is a numeric array of rank ⍴⍴R, and shape ⌽⍴R. |
This feature implements matrix inversion using Singular Value Decomposition. In particular, this means that any numeric array meeting the rank and shape requirements above is invertible.
For example,
⌹3 3⍴0
0 0 0
0 0 0
0 0 0
|
||||
| L is a numeric scalar, vector or matrix; otherwise signal a RANK ERROR. | ||||
| R is a numeric scalar, vector or matrix; otherwise signal a RANK ERROR. | ||||
| If either L or R is a scalar or vector, it is coerced to a matrix by (L R)←⍪¨L R. After this coercion, if the two matrices have a different number of rows, signal a LENGTH ERROR. | ||||
| Z is a numeric array. Before the above coercion of L and R, the rank of Z is ¯2+2⌈(⍴⍴L)+⍴⍴R, and the shape is (1↓⍴R),1↓⍴L. |
This feature implements matrix division using Singular Value Decomposition. In particular, this means that any two numeric arrays meeting the rank and shape requirements above are divisible.
For example,
a←3 3⍴0
a⌹a
0 0 0
0 0 0
0 0 0
| NARS 2000 Lang Tool Bar {{#ifeq:{{{en}}}|1||title="assign" style="border-width:thick; border-color:blue; background-color:yellow;" |← |
→ | bgcolor=cyan | title="assign" |← | → | }}
{{#ifeq:{{{en}}}|2||title="plus" style="border-width:thick; border-color:blue; background-color:yellow;" |+ |
- | × | ÷ | * | ⍟ | ⌹ | ○ | ! | ? | √ | bgcolor=cyan | title="plus" |+ | - | × | ÷ | * | ⍟ | ⌹ | ○ | ! | ? | √ | }}
{{#ifeq:{{{en}}}|3||title="mod" style="border-width:thick; border-color:blue; background-color:yellow;" || |
⌈ | ⌊ | ⊥ | ⊤ | ⊣ | ⊢ | |||||||||||||||||||
| ⌈ | ⌊ | ⊥ | ⊤ | ⊣ | ⊢ | ||||||||||||||||||||||||||||||||||||||||||||||||
| ≢ | < | ≤ | = | ≥ | > | ≠ | bgcolor=cyan | title="match" |≡ | ≢ | < | ≤ | = | ≥ | > | ≠ | }}
{{#ifeq:{{{en}}}|5||title="down caret" style="border-width:thick; border-color:blue; background-color:yellow;" |∨ |
∧ | ⍱ | ⍲ | bgcolor=cyan | title="down caret" |∨ | ∧ | ⍱ | ⍲ | }}
{{#ifeq:{{{en}}}|6||title="take" style="border-width:thick; border-color:blue; background-color:yellow;" |↑ |
↓ | ⊂ | ⊃ | ⌷ | ⍋ | ⍒ | ||||||||||||||||||||||
| ↓ | ⊂ | ⊃ | ⌷ | ⍋ | ⍒ | ||||||||||||||||||||||||||||||||||||||||||||||||
| ∊ | ⍸ | ⍷ | ∪ | ∩ | ⊆ | ⊇ | ~ | § | π | .. | bgcolor=cyan | title="iota" |⍳ | ∊ | ⍸ | ⍷ | ∪ | ∩ | ⊆ | ⊇ | ~ | § | π | .. | }}
{{#ifeq:{{{en}}}|8||title="comma" style="border-width:thick; border-color:blue; background-color:yellow;" |, |
⍪ | ⍴ | ⌽ | ⊖ | ⍉ | ||||||||||||||||||||||||
| ⍪ | ⍴ | ⌽ | ⊖ | ⍉ | |||||||||||||||||||||||||||||||||||||||||||||||||
| \ | ⌿ | ⍀ | ⊙ | ¨ | ⍨ | ⍤ | ⍡ | ⍥ | ⍦ | . | ∘ | ⍠ | ‼ | ⌻ | ∂ | ∫ | bgcolor=cyan | title="slash" |/ | \ | ⌿ | ⍀ | ⊙ | ¨ | ⍨ | ⍤ | ⍣ | ⍡ | ⍥ | ⍦ | . | ∘ | ⍠ | ‼ | ⌻ | ∂ | ∫ | }}
{{#ifeq:{{{en}}}|10||title="quotequad" style="border-width:thick; border-color:blue; background-color:yellow;" |⍞ |
⎕ | ⍎ | ⍕ | |||||||||||||
| ⎕ | ⍎ | ⍕ | |||||||||||||||||||||||||||||||||||||||||||||||||||
| ⍝ | ∇ | ∆ | ⍙ | _ | ⍺ | ⍵ | bgcolor=cyan | title="diamond" |⋄ | ⍝ | ∇ | ∆ | ⍙ | _ | ⍺ | ⍵ | }}
{{#ifeq:{{{en}}}|12||title="neg" style="border-width:thick; border-color:blue; background-color:yellow;" |¯ |
⍬ | ∞ | title="neg" |¯ | ⍬ | ∞ | ∅ | |||||||||||||||||||||||||||||||
| colspan=8 |Second Row | i j k | a | b | e | g | p | r | v | x | z | colspan=8 |Second Row | i j k | a | b | e | g | p | r | v | x | z | colspan=8 |Second Row | i j k | a | b | e | g | p | r | v | x | z | colspan=6 |Second Row | i j k | i j k l | g | p | r | v | x
}} | |||||||||||||