Le 15/2/15 11:23, Sven Van Caekenberghe a écrit :
http://en.wikipedia.org/wiki/Matrix_(mathematics) ?
yes
Since i, j, are the nearly the same for me, as well as row and columns....
I always got to be really concentrated during my math exam :)

Stef

On 15 Feb 2015, at 11:13, stepharo <[email protected]> wrote:

Hi


I'm wondering why

| matrix23 |
matrix23 := Matrix rows: 3 columns: 2.
matrix23 at: 1 at: 1 put: 11.
matrix23 at: 1 at: 2 put: 12.
matrix23 at: 1 at: 3 put: 13.
matrix23 at: 2 at: 1 put: 21.
matrix23 at: 2 at: 2 put: 22.
matrix23 at: 2 at: 3 put: 23.

is not equivalent to

| matrix23 |
matrix23 := Matrix rows: 3 columns: 2.
matrix23 atColumn: 1 atRow: 1 put: 11.
matrix23 atColumn: 1 atRow: 2 put: 12.
matrix23 atColumn: 1 atRow: 3 put: 13.
matrix23 atColumn: 2 atRow: 1 put: 21.
matrix23 atColumn: 2 atRow:  2 put: 22.
^ matrix23 atColumn: 2 atRow: 3 put: 23

I always thought that math notation was x,y (row,colum)
How is it done in other languages?
I checked the implementation so I know but why this choice in the API.






Reply via email to