* @brief Initialize the marginal variance calculation state. * * This function is only called for the first iteration, for the first row. */
| 117 | * This function is only called for the first iteration, for the first row. |
| 118 | */ |
| 119 | inline void initialize(const Allocator &inAllocator, |
| 120 | const uint16_t inWidthOfX, |
| 121 | const uint16_t inNumBasis) { |
| 122 | mStorage = inAllocator.allocateArray<double, dbal::AggregateContext, |
| 123 | dbal::DoZero, dbal::ThrowBadAlloc>( |
| 124 | arraySize(inWidthOfX, inNumBasis)); |
| 125 | rebind(inWidthOfX, inNumBasis); |
| 126 | widthOfX = inWidthOfX; |
| 127 | numBasis = inNumBasis; |
| 128 | } |
| 129 | |
| 130 | /** |
| 131 | * @brief We need to support assigning the previous state |