| 477 | } sr_ctx; |
| 478 | |
| 479 | void * 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.. |