of a
multidimensional array,
other than by looking at the size of the first row and column, with
@m[0;*].elems and @m[*;0].elems.
Am I missing something in the docs?
If it's a shaped multidimensional array, you can call the .shape method
my @a[3;3;3];
dd @a.shape; # (3,3,3
; > On 5 Feb 2021, at 15:49, Theo van den Heuvel wrote:
>> > I cannot seem to find an idiomatic way to get the dimensions of a
>> > multidimensional array,
>> > other than by looking at the size of the first row and column, with
>> > @m[0;*].elems and @m[*;0].elems.
>> >
When will we have p6’s Numpy?
On Sat, Feb 6, 2021, at 2:04 AM, Brad Gilbert wrote:
> There is a reason that you can't just ask for the dimensions of an
> unspecified multidimensional array.
> It may be multiple dimensions.
>
> [[1,2,3],
> [4,5,6,7,8,9,10]].sha
There is a reason that you can't just ask for the dimensions of an
unspecified multidimensional array.
It may be multiple dimensions.
[[1,2,3],
[4,5,6,7,8,9,10]].shape
If it gave a result it would be something like:
(2,3|7)
On Fri, Feb 5, 2021 at 8:50 AM Theo van den Heuvel
wrote
wrote:
> I cannot seem to find an idiomatic way to get the dimensions of
a multidimensional array,
> other than by looking at the size of the first row and column,
with @m[0;*].elems and @m[*;0].elems.
> Am I missing something in the docs?
If it's a shaped multidimensiona
o list
-y
On Fri, Feb 5, 2021 at 10:06 AM Elizabeth Mattijsen wrote:
> > On 5 Feb 2021, at 15:49, Theo van den Heuvel
> wrote:
> > I cannot seem to find an idiomatic way to get the dimensions of a
> multidimensional array,
> > other than by looking at the size of the
Hi gurus,
I cannot seem to find an idiomatic way to get the dimensions of a
multidimensional array,
other than by looking at the size of the first row and column, with
@m[0;*].elems and @m[*;0].elems.
Am I missing something in the docs?
Thanks,
--
Theo van den Heuvel