Shape: Difference between revisions

Jump to navigation Jump to search
30 bytes added ,  20:38, 26 September 2019
no edit summary
Miraheze>RikedyP
(Created page with "The shape of an array is a vector of lengths of the dimensions of the array. The shape funcion <code class="apl">⍴</code> returns the shape of its right argument array. <pre...")
 
Miraheze>Adám Brudzewsky
No edit summary
Line 1: Line 1:
The shape of an array is a vector of lengths of the dimensions of the array. The shape funcion <code class="apl">⍴</code> returns the shape of its right argument array.
The shape of an array is a vector of lengths of the dimensions of the array. The shape function <code class="apl">⍴</code> returns the shape of its right argument array.
<pre class="apl">
<pre class="apl">
       (⍬≡⍴)¨1 'A'                ⍝ The shape of a scalar is the empty numeric vector ⍬
       (⍬≡⍴)¨1 'A'                ⍝ The shape of a scalar is the empty numeric vector ⍬
Line 10: Line 10:
3 4 2
3 4 2
</pre>
</pre>
{{APL programming language}}

Navigation menu