Re: [Pharo-users] Matrix error

2015-10-24 Thread Offray Vladimir Luna Cárdenas
Thanks Werner, Both work fine. First seems more legible to me and I don't need DhbVector properties yet. My error was using #numberOfRows #numberOfColumns as constructors instead of #rows and #columns. Cheers, Offray On 24/10/15 03:21, Werner Kassens wrote: Hi Offray, you could try this:

Re: [Pharo-users] Matrix error

2015-10-24 Thread Werner Kassens
Hi Offray, you could try this: medMatrix:=Matrix rows: 5 columns: 7. 1 to: medMatrix numberOfRows do: [:row | 1 to: medMatrix numberOfColumns do: [ :column | medMatrix at: row at: column put: 0. Transcript show: row asString, ',', column asString, '|'. ]. Transcript

Re: [Pharo-users] Matrix error

2015-10-23 Thread Offray Vladimir Luna Cárdenas
Hi, I made an small matrix implementation. Nothing fancy. Just an array of arrays and is working. Just curious now about the error message. Cheers, Offray On 23/10/15 19:56, Offray Vladimir Luna Cárdenas wrote: Hi, I was testing the code here: =[1]= | medMatrix | medMatrix :=

[Pharo-users] Matrix error

2015-10-23 Thread Offray Vladimir Luna Cárdenas
Hi, I was testing the code here: =[1]= | medMatrix | medMatrix := Matrix new. medMatrix numberOfColumns: 7; numberOfRows: 5. 1 to: medMatrix numberOfRows do: [:row | 1 to: medMatrix numberOfColumns do: [ :column | "medMatrix at: row at: column put: 0."