Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vendethiel

This comment has been minimized.

Show comment
Hide comment
@vendethiel

vendethiel Jun 28, 2016

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

vendethiel commented Jun 28, 2016

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