MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / GrB_Vector_resize

Function GrB_Vector_resize

deps/GraphBLAS/Source/GrB_Vector_resize.c:12–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include "GB.h"
11
12GrB_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

Callers 1

GxB_Vector_resizeFunction · 0.85

Calls 1

GB_resizeFunction · 0.85

Tested by

no test coverage detected