| 10 | #include "GB.h" |
| 11 | |
| 12 | GrB_Info GrB_Matrix_resize // change the size of a matrix |
| 13 | ( |
| 14 | GrB_Matrix C, // matrix to modify |
| 15 | GrB_Index nrows_new, // new number of rows in matrix |
| 16 | GrB_Index ncols_new // new number of columns in matrix |
| 17 | ) |
| 18 | { |
| 19 | |
| 20 | //-------------------------------------------------------------------------- |
| 21 | // check inputs |
| 22 | //-------------------------------------------------------------------------- |
| 23 | |
| 24 | GB_WHERE (C, "GrB_Matrix_resize (C, nrows_new, ncols_new)") ; |
| 25 | GB_BURBLE_START ("GrB_Matrix_resize") ; |
| 26 | GB_RETURN_IF_NULL_OR_FAULTY (C) ; |
| 27 | |
| 28 | //-------------------------------------------------------------------------- |
| 29 | // resize the matrix |
| 30 | //-------------------------------------------------------------------------- |
| 31 | |
| 32 | GrB_Info info = GB_resize (C, nrows_new, ncols_new, Context) ; |
| 33 | GB_BURBLE_END ; |
| 34 | return (info) ; |
| 35 | } |
| 36 | |
| 37 | //------------------------------------------------------------------------------ |
| 38 | // GxB_Matrix_resize: historical |
no test coverage detected