|
From: | Elias Mårtenson |
Subject: | Re: [Bug-apl] scalar/array |
Date: | Sat, 4 Mar 2017 18:36:27 +0800 |
what is the reason? do you know their reasoning
cause 1 is 1 element and 1 2 3 is 3 elements so ⍴ 1 2 3 is 3 and ⍴ 1 should have been 1
If the rank of an array is zero then the array is said to have no dimensions, and the product of the dimensions (see array-total-size) is then 1; a zero-rank array therefore has a single element.
[Prev in Thread] | Current Thread | [Next in Thread] |