Revision 9c729628
| utility/matrix.h | ||
|---|---|---|
| 103 | 103 |
} |
| 104 | 104 |
} |
| 105 | 105 |
|
| 106 |
double& operator ()(int x, int y)
|
|
| 106 |
double operator()(int i, int j) const
|
|
| 107 | 107 |
{
|
| 108 |
return _cell[x*N+y]; |
|
| 108 |
return cell(i, j); |
|
| 109 |
} |
|
| 110 |
double& operator()(int i, int j) |
|
| 111 |
{
|
|
| 112 |
return cell(i, j); |
|
| 109 | 113 |
} |
| 110 | 114 |
|
| 111 |
double& cell(int x, int y) |
|
| 115 |
double cell(int i, int j) const |
|
| 116 |
{
|
|
| 117 |
return _cell_data[i*N+j]; |
|
| 118 |
} |
|
| 119 |
double& cell(int i, int j) |
|
| 112 | 120 |
{
|
| 113 |
return _cell[x*N+y];
|
|
| 121 |
return _cell_data[i*N+j];
|
|
| 114 | 122 |
} |
| 115 | 123 |
|
| 116 | 124 |
|
Also available in: Unified diff