| 220 | } |
| 221 | |
| 222 | void CSRMatrix::freeMemoryIfNeeded() |
| 223 | { |
| 224 | if ( _A ) |
| 225 | { |
| 226 | delete[] _A; |
| 227 | _A = NULL; |
| 228 | } |
| 229 | |
| 230 | if ( _IA ) |
| 231 | { |
| 232 | delete[] _IA; |
| 233 | _IA = NULL; |
| 234 | } |
| 235 | |
| 236 | if ( _JA ) |
| 237 | { |
| 238 | delete[] _JA; |
| 239 | _JA = NULL; |
| 240 | } |
| 241 | } |
| 242 | |
| 243 | void CSRMatrix::storeIntoOther( SparseMatrix *other ) const |
| 244 | { |