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

Method allocate

src/modules/convex/utils_regularization.cpp:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 }
32
33 inline void allocate (const Allocator& inAllocator,
34 uint32_t inDimension)
35 {
36 mStorage = inAllocator.allocateArray<double,
37 dbal::AggregateContext,
38 dbal::DoZero,
39 dbal::ThrowBadAlloc>(
40 arraySize(inDimension));
41 dimension.rebind(&mStorage[0]);
42 dimension = inDimension;
43 rebind();
44 }
45
46 template <class OtherHandle>
47 ScalesState& operator= (const ScalesState<OtherHandle>& inOtherState)

Callers 1

runMethod · 0.45

Calls 2

rebindClass · 0.50
rebindMethod · 0.45

Tested by

no test coverage detected