4,494
edits
(Add modern equivalents) |
|||
Line 21: | Line 21: | ||
The following forms of Mesh with [[Matrix|matrices]] are defined. Below, matrices are denoted with capital letters while vectors use lowercase letters. | The following forms of Mesh with [[Matrix|matrices]] are defined. Below, matrices are denoted with capital letters while vectors use lowercase letters. | ||
{|class=wikitable | |||
! Iverson notation !! Description !! Modern APL (<source lang=apl inline>⎕IO←0</source>) || Notes | |||
|- | |||
| style=text-align:center | <math>\backslash{}A,u,B\backslash</math> || mesh matrices along rows || <source lang=apl inline>u⊃¨⍤1⊢((~u)\A),¨(u\B)</source> | |||
|- | |||
| style=text-align:center | <math>\backslash{}A,U,B\backslash</math> || mesh differently for each row || <source lang=apl inline>U⊃¨⍤1⊢((~U)\⍤1⊢A),¨(U\⍤1⊢B)</source> || where <math>+/U=\nu(A)+\nu(B)</math> in each component | |||
|- | |||
| style=text-align:center | <math>\backslash{}a,U,b\backslash</math> || mesh vectors in multiple ways || <source lang=apl inline>U⊃¨⍤1⊢((~U)\⍤1⊢A),¨(U\⍤1⊢B)</source> || like the previous with repeated rows in <math>A</math> and <math>B</math> | |||
|- | |||
| style=text-align:center | <math>\backslash\backslash{}A,u,B\backslash\backslash</math> || mesh matrices along columns || <source lang=apl inline>u⊃¨⍤0 1⊢((~u)⍀A),¨(u⍀B)</source> || | |||
|- | |||
| style=text-align:center | <math>\backslash\backslash{}A,U,B\backslash\backslash</math> || mesh differently for each column || <source lang=apl inline>⍉U⊃¨⍤1⊢((~U)\⍤1⍉A),¨(U\⍤1⍉B)</source> || where <math>+//U=\mu(A)+\mu(B)</math> in each component | |||
|- | |||
| style=text-align:center | <math>\backslash\backslash{}a,U,b\backslash\backslash</math> || mesh vectors differently in each column || <source lang=apl inline>⍉U⊃¨⍤1⊢((~U)\⍤1⍉a),¨(U\⍤1⍉b)</source> || like the previous with repeated columns in <math>A</math> and <math>B</math> | |||
|} | |||
== External Links == | == External Links == |