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

Method initialize

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

Source from the content-addressed store, hash-verified

44 }
45
46 void initialize(const Allocator& inAllocator, uint64_t inNumRows) {
47 // Allocate the storage for 1 column
48 mStorage = inAllocator.allocateArray<double, dbal::AggregateContext,
49 dbal::DoZero, dbal::ThrowBadAlloc>(arraySize(inNumRows, 1));
50 rebind(inNumRows, 1);
51 numRows = inNumRows;
52 numCols = 0;
53 }
54
55 typename HandleTraits<Handle>::MatrixTransparentHandleMap::ColXpr
56 newColumn(const Allocator& inAllocator) {

Callers 1

runMethod · 0.45

Calls 1

rebindClass · 0.50

Tested by

no test coverage detected