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

Method SRF_init

src/modules/lda/lda.cpp:479–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

477} sr_ctx;
478
479void * lda_unnest_transpose::SRF_init(AnyType &args)
480{
481 ArrayHandle<int64_t> inarray64 = args[0].getAs<ArrayHandle<int64_t> >();
482
483 sr_ctx * ctx = new sr_ctx;
484 ctx->inarray = reinterpret_cast<const int32_t *>(inarray64.ptr());
485 ctx->maxcall = args[2].getAs<int32_t>();
486 ctx->dim = args[1].getAs<int32_t>();
487 ctx->curcall = 0;
488
489 return ctx;
490}
491
492/**
493 * @brief The function is used to return the next row by the SRF..

Callers 1

SRF_invokeMethod · 0.45

Calls 1

ptrMethod · 0.45

Tested by

no test coverage detected