raquel-oliveira / numerical-analysis

0 stars 0 forks source link

Implement [][] operator for matrices #3

Closed greati closed 7 years ago

greati commented 7 years ago

Current implementation assigns the manipulation (access and modification) of elements in a matrix to methods at (i, j) and set (i, j, value), where iis a line and j is a column, which produces verbose and less-readable code.

Operator [][] can fix this problem, since one is able to refer to an element at line i and column j in matrix A just by using A[i][j].