Whenever you have a question that starts with "isn't it faster to ...", Benchmark should immediately spring to mind. Just test both solutions (and a third: array of arrays, wich is probably the most common way of representing a matrix), and use whichever is faster. Then optimize that one.