| 530 | } |
| 531 | |
| 532 | LGBM_SE LGBM_BoosterPredictForCSC_R(LGBM_SE handle, |
| 533 | LGBM_SE indptr, |
| 534 | LGBM_SE indices, |
| 535 | LGBM_SE data, |
| 536 | LGBM_SE num_indptr, |
| 537 | LGBM_SE nelem, |
| 538 | LGBM_SE num_row, |
| 539 | LGBM_SE is_rawscore, |
| 540 | LGBM_SE is_leafidx, |
| 541 | LGBM_SE is_predcontrib, |
| 542 | LGBM_SE num_iteration, |
| 543 | LGBM_SE parameter, |
| 544 | LGBM_SE out_result, |
| 545 | LGBM_SE call_state) { |
| 546 | R_API_BEGIN(); |
| 547 | int pred_type = GetPredictType(is_rawscore, is_leafidx, is_predcontrib); |
| 548 | |
| 549 | const int* p_indptr = R_INT_PTR(indptr); |
| 550 | const int* p_indices = R_INT_PTR(indices); |
| 551 | const double* p_data = R_REAL_PTR(data); |
| 552 | |
| 553 | int64_t nindptr = R_AS_INT(num_indptr); |
| 554 | int64_t ndata = R_AS_INT(nelem); |
| 555 | int64_t nrow = R_AS_INT(num_row); |
| 556 | double* ptr_ret = R_REAL_PTR(out_result); |
| 557 | int64_t out_len; |
| 558 | CHECK_CALL(LGBM_BoosterPredictForCSC(R_GET_PTR(handle), |
| 559 | p_indptr, C_API_DTYPE_INT32, p_indices, |
| 560 | p_data, C_API_DTYPE_FLOAT64, nindptr, ndata, |
| 561 | nrow, pred_type, R_AS_INT(num_iteration), R_CHAR_PTR(parameter), &out_len, ptr_ret)); |
| 562 | R_API_END(); |
| 563 | } |
| 564 | |
| 565 | LGBM_SE LGBM_BoosterPredictForMat_R(LGBM_SE handle, |
| 566 | LGBM_SE data, |
nothing calls this directly
no test coverage detected