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

Function GrB_Matrix_resize

deps/GraphBLAS/Source/GrB_Matrix_resize.c:12–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

RG_Matrix_resizeFunction · 0.85
gb_assignFunction · 0.85
GxB_Matrix_resizeFunction · 0.85

Calls 1

GB_resizeFunction · 0.85

Tested by

no test coverage detected