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

Method initialize

src/modules/regress/logistic.cpp:88–93  ·  view source on GitHub ↗

* @brief Initialize the conjugate-gradient state. * * This function is only called for the first iteration, for the first row. */

Source from the content-addressed store, hash-verified

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

Callers 9

runMethod · 0.45
ClusteredStateMethod · 0.45
ConSplitsSampleMethod · 0.45
ConSplitsResultMethod · 0.45
DecisionTreeMethod · 0.45
TreeAccumulatorMethod · 0.45

Calls 1

rebindClass · 0.50

Tested by

no test coverage detected