* @brief Initialize the conjugate-gradient state. * * This function is only called for the first iteration, for the first row. */
| 86 | * This function is only called for the first iteration, for the first row. |
| 87 | */ |
| 88 | inline void initialize(const Allocator &inAllocator, uint16_t inWidthOfX) { |
| 89 | mStorage = inAllocator.allocateArray<double, dbal::AggregateContext, |
| 90 | dbal::DoZero, dbal::ThrowBadAlloc>(arraySize(inWidthOfX)); |
| 91 | rebind(inWidthOfX); |
| 92 | widthOfX = inWidthOfX; |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * @brief We need to support assigning the previous state |
no test coverage detected