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