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

Method initialize

src/modules/linalg/average.cpp:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 }
45
46 inline void initialize(const Allocator &inAllocator,
47 uint32_t inNumDimensions) {
48
49 mStorage = inAllocator.allocateArray<double, dbal::AggregateContext,
50 dbal::DoZero, dbal::ThrowBadAlloc>(arraySize(inNumDimensions));
51 rebind(inNumDimensions);
52 numDimensions = inNumDimensions;
53 }
54
55 template <class OtherHandle>
56 AvgVectorState &operator+=(

Callers 1

runMethod · 0.45

Calls 1

rebindClass · 0.50

Tested by

no test coverage detected