Post Reply 
SIZE()
06-23-2015, 02:41 PM
Post: #2
RE: SIZE()
Hello,

A vector has no dimensional input other then length. Don't forget that you can have a matrix with a single row.

SIZE([[1,2,3,4,5]]) -> {1,5}
SIZE([1,2,3,4,5]) -> {5}

Basically, if you have two items in your list, it is a matrix. If there is only one, it returns a single number as length. We return a list to make it consistent to access the items within.

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
SIZE() - Angus - 06-23-2015, 10:39 AM
RE: SIZE() - Tim Wessman - 06-23-2015 02:41 PM
RE: SIZE() - Angus - 06-24-2015, 08:17 AM
RE: SIZE() - Didier Lachieze - 06-24-2015, 08:37 AM
RE: SIZE() - Gerald H - 06-24-2015, 08:43 AM
RE: SIZE() - DrD - 06-24-2015, 11:45 AM
RE: SIZE() - Angus - 06-24-2015, 09:23 AM
RE: SIZE() - Gerald H - 06-24-2015, 10:35 AM
RE: SIZE() - Gerald H - 06-24-2015, 10:36 AM
RE: SIZE() - Angus - 06-24-2015, 10:55 AM
RE: SIZE() - Gerald H - 06-24-2015, 11:17 AM
RE: SIZE() - Gerald H - 06-24-2015, 12:13 PM
RE: SIZE() - Angus - 06-24-2015, 12:17 PM
RE: SIZE() - Gerald H - 06-24-2015, 12:23 PM
RE: SIZE() - Angus - 06-24-2015, 12:41 PM
RE: SIZE() - DrD - 06-24-2015, 02:51 PM
RE: SIZE() - Angus - 06-25-2015, 05:20 AM
RE: SIZE() - Gerald H - 06-25-2015, 06:35 AM
RE: SIZE() - Angus - 06-25-2015, 07:57 AM
RE: SIZE() - Gerald H - 06-25-2015, 10:02 AM
RE: SIZE() - Gerald H - 06-25-2015, 10:35 AM
RE: SIZE() - Angus - 06-25-2015, 10:45 AM



User(s) browsing this thread: 1 Guest(s)