Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 17th, 2006, 05:25 PM
vertigo
Guest
 
Posts: n/a
Default length of multidimensional table

Hello

i have:
x = zeros([3,4],Float)

how can i check how many rows and columns x have ?
(what is the X and Y size of that table) ?

Thanx
  #2  
Old December 17th, 2006, 05:55 PM
Marc 'BlackJack' Rintsch
Guest
 
Posts: n/a
Default Re: length of multidimensional table

In <op.tkprqih3y0t4kh@darkstar>, vertigo wrote:
Quote:
i have:
x = zeros([3,4],Float)
>
how can i check how many rows and columns x have ?
(what is the X and Y size of that table) ?
Try `x.getshape()`.

Ciao,
Marc 'BlackJack' Rintsch
  #3  
Old December 17th, 2006, 06:05 PM
Wojciech =?ISO-8859-2?Q?Mu=B3a?=
Guest
 
Posts: n/a
Default Re: length of multidimensional table

vertigo wrote:
Quote:
i have:
x = zeros([3,4],Float)
>
how can i check how many rows and columns x have ?
(what is the X and Y size of that table) ?
Data member x.shape (tuple) contains
dimensions of array.
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles