MCPcopy Create free account
hub / github.com/apache/madlib / initialize

Method initialize

src/modules/regress/marginal.cpp:119–128  ·  view source on GitHub ↗

* @brief Initialize the marginal variance calculation state. * * This function is only called for the first iteration, for the first row. */

Source from the content-addressed store, hash-verified

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

Callers 1

runMethod · 0.45

Calls 1

rebindClass · 0.50

Tested by

no test coverage detected