Skip to content

Instantly share code, notes, and snippets.

@shashi
Last active April 1, 2023 12:37
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save shashi/9ad9de91d1aa12f006c4 to your computer and use it in GitHub Desktop.
Save shashi/9ad9de91d1aa12f006c4 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vendethiel
Copy link

A few of these aren't correct.

apl"(ι5) ×∘ ι5"

First, the symbol in APL is , not ι.
Second, this would be an atop (×∘), which is not what you want: what you want is outer product.

In APL (at least Dyalog APL), that's ∘.×.

    (⍳5)∘.×⍳5
1  2  3  4  5
2  4  6  8 10
3  6  9 12 15
4  8 12 16 20
5 10 15 20 25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment