www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - get number of columns and rows in an ndarray.

reply learner <learner learner.com> writes:
Hi,

How can i get the number of cols and rows in and ndarray that has 
already been created?

learner
Jun 15 2016
next sibling parent reply Seb <seb wilzba.ch> writes:
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`?
Jun 15 2016
parent learner <learner learner.com> writes:
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`?
Thanks
Jun 15 2016
prev sibling parent Ilya Yaroshenko <ilyayaroshenko gmail.com> writes:
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
Jun 16 2016