Shape: Difference between revisions

Jump to navigation Jump to search
328 bytes added ,  22:05, 10 September 2022
m
Text replacement - "</source>" to "</syntaxhighlight>"
Miraheze>Adám Brudzewsky
m (Text replacement - "http://help.dyalog.com/latest/Content/Language/" to "http://help.dyalog.com/latest/index.htm#Language/")
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(9 intermediate revisions by 5 users not shown)
Line 7: Line 7:
== Examples ==
== Examples ==


<source lang="apl">
<syntaxhighlight lang="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 ⍬
1 1
1 1
Line 16: Line 16:
       ⍴'ABC'∘.,1 2 3 4∘.×0J1 1J2  ⍝ Two consecutive outer products result in a cuboid
       ⍴'ABC'∘.,1 2 3 4∘.×0J1 1J2  ⍝ Two consecutive outer products result in a cuboid
3 4 2
3 4 2
</source>
</syntaxhighlight>


== See also ==
* [[Tally]]
* [[Index generator]]
== External links ==
== External links ==


=== Lessons ===
=== Lessons ===
* [https://chat.stackexchange.com/rooms/52405/conversation/lesson-10-apl-functions-- APL Cultivation]
* [https://chat.stackexchange.com/rooms/52405/conversation/lesson-10-apl-functions-- APL Cultivation]
* [https://www.sacrideo.us/apl-a-day-3-arrays-have-shape/ Arrays have Shape] (from [https://www.sacrideo.us/tag/apl-a-day/ APL a Day])


=== Documentation ===
=== Documentation ===


* [http://help.dyalog.com/latest/index.htm#Language/Primitive%20Functions/Shape.htm Dyalog]
* [https://help.dyalog.com/latest/index.htm#Language/Primitive%20Functions/Shape.htm Dyalog]
 
* [http://wiki.nars2000.org/index.php/Rho NARS2000]
* [http://wiki.nars2000.org/index.php/Rho NARS2000]
* [http://microapl.com/apl_help/ch_020_020_460.htm APLX]
* [http://microapl.com/apl_help/ch_020_020_460.htm APLX]
* [https://www.jsoftware.com/help/dictionary/d210.htm J Dictionary], [https://code.jsoftware.com/wiki/Vocabulary/dollar J NuVoc] (as <syntaxhighlight lang=apl inline>$</syntaxhighlight> "Shape Of")
* [https://mlochbaum.github.io/BQN/doc/shape.html BQN]


* [https://www.jsoftware.com/help/dictionary/d210.htm J Dictionary], [https://code.jsoftware.com/wiki/Vocabulary/dollar J NuVoc] (as <source lang=apl inline>$</source> "Shape Of")
{{APL features}}
 
{{APL built-ins}}[[Category:Primitive functions]][[Category:Array characteristics]]
{{APL programming language}}
{{APL built-ins}}

Navigation menu