Hello,
 It is funny how that exact method definition was already proposed for making a sparse matrix earlier that was turned down. Maybe a load test would be good just too see if won't do as needed. Some remarks feel like too much theory and not enough practice. I am sure you are all smart enough to optimize AFTER just getting things to work right. Good day.

Yemi Bedu

P&R Fasteners
325 Pierce St
Somerset, NJ 08873
732-302-3600

-----Original Message-----
From: Mathieu Bouchard [mailto:matju / artengine.ca] 
...

class MyMatrix
  ...
  def []=(i,j,value)
    @rows[i][j]=value
    @columns[i][j]=value
  end
end

mm=MyMatrix.new
mm[3,5] = 42

 _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - t˝═:+1.514.383.3801 - http://artengine.ca/matju
| Freelance Digital Arts Engineer, Montr˝┬l QC Canada