| 14 | #include "GB.h" |
| 15 | |
| 16 | GrB_Info GrB_Matrix_clear // clear a matrix of all entries; |
| 17 | ( // type and dimensions remain unchanged |
| 18 | GrB_Matrix A // matrix to clear |
| 19 | ) |
| 20 | { |
| 21 | |
| 22 | //-------------------------------------------------------------------------- |
| 23 | // check inputs |
| 24 | //-------------------------------------------------------------------------- |
| 25 | |
| 26 | GB_WHERE (A, "GrB_Matrix_clear (A)") ; |
| 27 | GB_RETURN_IF_NULL_OR_FAULTY (A) ; |
| 28 | |
| 29 | //-------------------------------------------------------------------------- |
| 30 | // clear the matrix |
| 31 | //-------------------------------------------------------------------------- |
| 32 | |
| 33 | return (GB_clear (A, Context)) ; |
| 34 | } |
| 35 | |