| 10 | #include "GB.h" |
| 11 | |
| 12 | GrB_Info GrB_Matrix_nrows // get the number of rows of a matrix |
| 13 | ( |
| 14 | GrB_Index *nrows, // matrix has nrows rows |
| 15 | const GrB_Matrix A // matrix to query |
| 16 | ) |
| 17 | { |
| 18 | |
| 19 | //-------------------------------------------------------------------------- |
| 20 | // check inputs |
| 21 | //-------------------------------------------------------------------------- |
| 22 | |
| 23 | GB_WHERE1 ("GrB_Matrix_nrows (&nrows, A)") ; |
| 24 | GB_RETURN_IF_NULL (nrows) ; |
| 25 | GB_RETURN_IF_NULL_OR_FAULTY (A) ; |
| 26 | |
| 27 | //-------------------------------------------------------------------------- |
| 28 | // get the number of rows |
| 29 | //-------------------------------------------------------------------------- |
| 30 | |
| 31 | (*nrows) = GB_NROWS (A) ; |
| 32 | #pragma omp flush |
| 33 | return (GrB_SUCCESS) ; |
| 34 | } |
| 35 |
no outgoing calls