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

Function GrB_Vector_nvals

deps/GraphBLAS/Source/GrB_Vector_nvals.c:12–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include "GB.h"
11
12GrB_Info GrB_Vector_nvals // get the number of entries in a vector
13(
14 GrB_Index *nvals, // number of entries
15 const GrB_Vector v // vector to query
16)
17{
18
19 //--------------------------------------------------------------------------
20 // check inputs
21 //--------------------------------------------------------------------------
22
23 GB_WHERE1 ("GrB_Vector_nvals (&nvals, v)") ;
24 GB_BURBLE_START ("GrB_Vector_nvals") ;
25 GB_RETURN_IF_NULL_OR_FAULTY (v) ;
26 ASSERT (GB_VECTOR_OK (v)) ;
27
28 //--------------------------------------------------------------------------
29 // get the number of entries
30 //--------------------------------------------------------------------------
31
32 GrB_Info info = GB_nvals (nvals, (GrB_Matrix) v, Context) ;
33 GB_BURBLE_END ;
34 #pragma omp flush
35 return (info) ;
36}
37

Callers 5

Proc_BFS_InvokeFunction · 0.85
mexFunctionFunction · 0.85
mexFunctionFunction · 0.85
mexFunctionFunction · 0.85

Calls 1

GB_nvalsFunction · 0.85

Tested by

no test coverage detected