| 65 | |
| 66 | template <typename Real> |
| 67 | void HVectorBase<Real>::clearScalars() { |
| 68 | /* |
| 69 | * Clear scalars in an HVector instance |
| 70 | */ |
| 71 | // Reset the flag to indicate when to pack |
| 72 | this->packFlag = false; |
| 73 | // Zero the number of stored indices |
| 74 | this->count = 0; |
| 75 | // Zero the synthetic clock for operations with this vector |
| 76 | this->synthetic_tick = 0; |
| 77 | // Initialise the next value |
| 78 | this->next = 0; |
| 79 | } |
| 80 | |
| 81 | template <typename Real> |
| 82 | void HVectorBase<Real>::tight() { |