| 423 | } |
| 424 | |
| 425 | af_err af_sparse_get_info(af_array *values, af_array *rows, af_array *cols, |
| 426 | af_storage *stype, const af_array in) { |
| 427 | try { |
| 428 | if (values != NULL) { AF_CHECK(af_sparse_get_values(values, in)); } |
| 429 | if (rows != NULL) { AF_CHECK(af_sparse_get_row_idx(rows, in)); } |
| 430 | if (cols != NULL) { AF_CHECK(af_sparse_get_col_idx(cols, in)); } |
| 431 | if (stype != NULL) { AF_CHECK(af_sparse_get_storage(stype, in)); } |
| 432 | } |
| 433 | CATCHALL; |
| 434 | |
| 435 | return AF_SUCCESS; |
| 436 | } |
| 437 | |
| 438 | af_err af_sparse_get_values(af_array *out, const af_array in) { |
| 439 | try { |
no test coverage detected