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

Method initialize

src/modules/linalg/matrix_decomp.cpp:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

runMethod · 0.45

Calls 1

rebindClass · 0.50

Tested by

no test coverage detected