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

Function Graph_GetZeroMatrix

src/graph/graph.c:1344–1359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1342}
1343
1344RG_Matrix Graph_GetZeroMatrix
1345(
1346 const Graph *g
1347) {
1348 RG_Matrix z = g->_zero_matrix;
1349 g->SynchronizeMatrix(g, z);
1350
1351#if RG_DEBUG
1352 // make sure zero matrix is indeed empty
1353 GrB_Index nvals;
1354 RG_Matrix_nvals(&nvals, z);
1355 ASSERT(nvals == 0);
1356#endif
1357
1358 return z;
1359}
1360
1361static void _Graph_Free
1362(

Calls 1

RG_Matrix_nvalsFunction · 0.85

Tested by

no test coverage detected