Dear, The answer is: none! A common way to represent a matrix is by a tuple of rows, each row being a tuple of elements. So your example matrix would be
A=matrix(row(A11 A12 A13) row(A21 A22 A23) row(A31 A32 A33)) If I is a row number and J a column number, you can access the corresponding element as A.I.J. The memory representation of A is not contiguous, however. And a given row may be shared between several matrices. The tuple A is represented as an array of references (references are a bit like pointers). Each reference refers itself to a row tuple (which is itself an array of references). Does this answer your question? Cheers, raph On Mon, Nov 3, 2008 at 6:50 PM, Hime-chan ღ Claudia -^__^-x ღ < [EMAIL PROTECTED]> wrote: > Good afternoon! > > I'm read the Oz tutorial from site > http://www.mozart-oz.org/home/doc/tutorial/ but, I don't found the > answer. > > My question is about the form how the matrix are ordered in memory > (from rows or columns), no about what it can store >.<x I think I > wasnt very clear... > > So... In memory, a matrix: > > A11 A12 A13 > A21 A22 A23 > A31 A32 A33 > > may be written the way: A11, A12, A13, A21, A22, A23, A31, A32, A33 (from > rows) > OR > A11, A21, A31, A12, A22, A32, A13, A23, A33 (from columns) > > I would like to know wich one of the forms it is write. > > The tutorial dont have very answers for questions presents by my work > too... I would like to know if you have a link for another official > specification of language oz or of Mozart(where would be possible > found this kind of detail?) or if it are available in the internet. > > > Thank you. > > 2008/11/2 Torsten Anders <[EMAIL PROTECTED]>: > > Dear Hime-chan ღ Claudia, > > On 31 Oct 2008, at 13:51, Hime-chan ღ Claudia -^__^-x ღ wrote: > > > > And.. I need know how matrix are constructed in Oz... If are "row X > > column" like C, Pascal, etc or "column X row" like Fortran... > > > > You can build a matrix in Oz by nesting records or tuples. > > However, looking at your question I suggest you start by reading the Oz > > tutorial :) > > Best > > Torsten > > > > > > > _________________________________________________________________________________ > > mozart-users mailing list > > [email protected] > > http://www.mozart-oz.org/mailman/listinfo/mozart-users > > > > > > -- > ♥ღ♥ღ♥ღHime HImura Voigt♥ღ♥ღ♥ღ > ~~<< > http://himehimura.deviantart.com/gallery/ > http://lovesanctuary.tk/ > >>~~ > > -ღ-ღ-ღ- > "O degrau de uma escada não serve simplesmente para que alguém > permaneça em cima dele, destina-se a sustentar o pé de um homem pelo > tempo suficiente para que ele coloque o outro um pouco mais alto" > (Thomas Huxley) > -ღ-ღ-ღ- > > > _________________________________________________________________________________ > mozart-users mailing list > [email protected] > http://www.mozart-oz.org/mailman/listinfo/mozart-users >
_________________________________________________________________________________ mozart-users mailing list [email protected] http://www.mozart-oz.org/mailman/listinfo/mozart-users
