Thread overview | ||||||
---|---|---|---|---|---|---|
|
June 15, 2016 get number of columns and rows in an ndarray. | ||||
---|---|---|---|---|
| ||||
Hi, How can i get the number of cols and rows in and ndarray that has already been created? learner |
June 15, 2016 Re: get number of columns and rows in an ndarray. | ||||
---|---|---|---|---|
| ||||
Posted in reply to learner | On Wednesday, 15 June 2016 at 21:51:25 UTC, learner wrote: > Hi, > > How can i get the number of cols and rows in and ndarray that has already been created? > > learner how about `shape`? http://dlang.org/phobos/std_experimental_ndslice_slice.html#.Slice.shape |
June 15, 2016 Re: get number of columns and rows in an ndarray. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Seb | On Wednesday, 15 June 2016 at 21:54:22 UTC, Seb wrote:
> On Wednesday, 15 June 2016 at 21:51:25 UTC, learner wrote:
>> Hi,
>>
>> How can i get the number of cols and rows in and ndarray that has already been created?
>>
>> learner
>
> how about `shape`?
>
> http://dlang.org/phobos/std_experimental_ndslice_slice.html#.Slice.shape
Thanks
|
June 16, 2016 Re: get number of columns and rows in an ndarray. | ||||
---|---|---|---|---|
| ||||
Posted in reply to learner | On Wednesday, 15 June 2016 at 21:51:25 UTC, learner wrote:
> Hi,
>
> How can i get the number of cols and rows in and ndarray that has already been created?
>
> learner
Also `sl.length!0`, `sl.length!1`, etc --Ilya
|
Copyright © 1999-2021 by the D Language Foundation