Revision b79e511b utility/matrix.h
utility/matrix.h | ||
---|---|---|
36 | 36 |
public: |
37 | 37 |
Matrix() |
38 | 38 |
{ |
39 |
_cell = &_cell_data[0]; |
|
40 |
memset(_cell, 0, N*N*sizeof(double)); |
|
39 |
memset(_cell_data, 0, N*N*sizeof(double)); |
|
41 | 40 |
} |
42 | 41 |
|
43 | 42 |
Matrix(const Matrix &m) |
44 | 43 |
{ |
45 |
_cell = &_cell_data[0]; |
|
46 | 44 |
for (int ij = 0; ij < N*N; ++ij) |
47 | 45 |
{ |
48 | 46 |
_cell_data[ij] = m._cell_data[ij]; |
... | ... | |
229 | 227 |
} |
230 | 228 |
|
231 | 229 |
private: |
232 |
double* _cell; |
|
233 | 230 |
double _cell_data[N*N]; |
234 | 231 |
}; |
235 | 232 |
|
Also available in: Unified diff