On Wednesday 10 July 2013 at 22:30, Steven Yi wrote:
Hi Ed,That's mostly right. The int dimensions is the number of dimensions,and the sizes are essentially an int array that marks the sizes ofeach dimension. So if you had an array of:karray1[][][] init 3, 4, 5that'd have 3 dimensions, with sizes 3, 4, and 5, and you could indexinto the last element using:karray1[2][3][4]If you wanted a 2d array with 10 rows, and 3 columns, you could do:karray1[][] init 10, 3which would have 2 dimensions, with sizes[0] == 10, and sizes[1] == 3.So you can use the dimensions member of the struct to check how muchyou can index into the sizes array.Hope that helps!stevenOn Wed, Jul 10, 2013 at 3:45 PM, Edward Costello<edwardcostello@gmail.com> wrote:Hi,I am testing out making some opcodes using arrays and I was just wonderingif I understand the ARRAYDAT structure correctly. Does the sizes pointergive the row and column dimensions? i.e. array->sizes[0] is the rows andarray->sizes[1] the columns?If I make a score that has kArr[][] init 10,11 in it I get 10 for bothsizes[0] and sizes[1].--Edward Costello------------------------------------------------------------------------------See everything from the browser to the database with AppDynamicsGet end-to-end visibility with application monitoring from AppDynamicsIsolate bottlenecks and diagnose root cause in seconds.Start your free trial of AppDynamics Pro today!_______________________________________________Csound-devel mailing list------------------------------------------------------------------------------See everything from the browser to the database with AppDynamicsGet end-to-end visibility with application monitoring from AppDynamicsIsolate bottlenecks and diagnose root cause in seconds.Start your free trial of AppDynamics Pro today!_______________________________________________Csound-devel mailing list