Mesh: Difference between revisions

Jump to navigation Jump to search
848 bytes added ,  17:29, 25 December 2019
Add modern equivalents
(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.
* <math>\backslash{}A,u,B\backslash</math> meshes matrices along rows.
{|class=wikitable
* <math>\backslash{}A,U,B\backslash</math>, where <math>+/U=\nu(A)+\nu(B)</math> in each component, meshes differently for each row.
! Iverson notation !! Description !! Modern APL (<source lang=apl inline>⎕IO←0</source>) || Notes
* <math>\backslash{}a,U,b\backslash</math> meshes vectors in multiple ways, like the previous with repeated rows in <math>A</math> and <math>B</math>.
|-
* <math>\backslash\backslash{}A,u,B\backslash\backslash</math> meshes matrices along columns.
| 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>
* <math>\backslash\backslash{}A,U,B\backslash\backslash</math>, where <math>+//U=\mu(A)+\mu(B)</math> in each component, meshes differently for each column.
|-
* <math>\backslash\backslash{}a,U,b\backslash\backslash</math>, meshes vectors differently in each column.
| 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 ==

Navigation menu