bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] How does a vector become a matrix?


From: Jay Foad
Subject: Re: [Bug-apl] How does a vector become a matrix?
Date: Mon, 12 May 2014 11:08:53 +0100

APL2's Disclose (Dyalog calls it Mix) will convert a vector of vectors
into a matrix:

      ⊃'timor' 'mortis'
┌→─────┐
↓timor │
│mortis│
└──────┘

Your second application of Disclose is applied to a 1-vector of
1-vectors (,⊂,7), so it returns a 1x1 matrix.

Jay.

On 12 May 2014 06:03, Blake McBride <address@hidden> wrote:
>       ⊃⊃⊂,⊂,7
> ┌→┐
> ↓7│
> └─┘
>       ⍴⊃⊃⊂,⊂,7
> ┌→──┐
> │1 1│
> └───┘
>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]