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

Function GB_is_dense

deps/GraphBLAS/Source/GB_convert.h:207–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205//------------------------------------------------------------------------------
206
207static inline bool GB_is_dense
208(
209 const GrB_Matrix A
210)
211{
212 // check if A is competely dense: all entries present.
213 // zombies, pending tuples, and jumbled status are not considered.
214 // A can have any sparsity structure: hyper, sparse, bitmap, or full.
215 // It can be converted to full, if zombies/tuples/jumbled are discarded.
216 if (A == NULL)
217 {
218 return (false) ;
219 }
220 if (GB_IS_FULL (A))
221 {
222 // A is full; the pattern is not present
223 return (true) ;
224 }
225 // A is sparse, hyper, or bitmap: check if all entries present
226 return (GB_nnz_full (A) == GB_nnz (A)) ;
227}
228
229//------------------------------------------------------------------------------
230// GB_as_if_full

Callers 15

mexFunctionFunction · 0.85
mexFunctionFunction · 0.85
gb_normFunction · 0.85
GxB_Matrix_unpack_FullRFunction · 0.85
GxB_Matrix_export_FullRFunction · 0.85
GB_subassignerFunction · 0.85
GB_Matrix_diagFunction · 0.85
GB_concat_fullFunction · 0.85
GB_split_fullFunction · 0.85
GB_mxmFunction · 0.85
GB_splitFunction · 0.85
GB_dense_subassign_23Function · 0.85

Calls 2

GB_nnz_fullFunction · 0.50
GB_nnzFunction · 0.50

Tested by

no test coverage detected