get number of columns and rows in an ndarray.

Seb via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jun 15 14:54:22 PDT 2016


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


More information about the Digitalmars-d-learn mailing list