| 46 | } |
| 47 | |
| 48 | void initialize(const Allocator& inAllocator, uint64_t inNumRows, uint64_t inNumCols) { |
| 49 | // Allocate the storage for the matrix |
| 50 | mStorage = inAllocator.allocateArray<double, dbal::AggregateContext, |
| 51 | dbal::DoZero, dbal::ThrowBadAlloc>(stateSize(inNumRows, inNumCols)); |
| 52 | rebind(inNumRows, inNumCols); |
| 53 | numRows = inNumRows; |
| 54 | numCols = inNumCols; |
| 55 | matrix.fill(0); |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * @brief We need to support assigning the previous state |