1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
|
//------------------------------------------------------------------------------
// GB_check.h: check and optionally print an object
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
//------------------------------------------------------------------------------
#ifndef GB_CHECK_H
#define GB_CHECK_H
// pr values for *_check functions
#define GB0 GxB_SILENT
#define GB1 GxB_SUMMARY
#define GB2 GxB_SHORT
#define GB3 GxB_COMPLETE
#define GB4 GxB_SHORT_VERBOSE
#define GB5 GxB_COMPLETE_VERBOSE
GB_PUBLIC
GrB_Info GB_entry_check // print a single value
(
const GrB_Type type, // type of value to print
const void *x, // value to print
int pr, // print level
FILE *f // file to print to
) ;
GB_PUBLIC
GrB_Info GB_code_check // print and check an entry using a type code
(
const GB_Type_code code, // type code of value to print
const void *x, // entry to print
int pr, // print level
FILE *f // file to print to
) ;
GB_PUBLIC
GrB_Info GB_Type_check // check a GraphBLAS Type
(
const GrB_Type type, // GraphBLAS type to print and check
const char *name, // name of the type from the caller; optional
int pr, // print level
FILE *f // file for output
) ;
GB_PUBLIC
GrB_Info GB_UnaryOp_check // check a GraphBLAS unary operator
(
const GrB_UnaryOp op, // GraphBLAS operator to print and check
const char *name, // name of the operator
int pr, // print level
FILE *f // file for output
) ;
GB_PUBLIC
GrB_Info GB_BinaryOp_check // check a GraphBLAS binary operator
(
const GrB_BinaryOp op, // GraphBLAS operator to print and check
const char *name, // name of the operator
int pr, // print level
FILE *f // file for output
) ;
GB_PUBLIC
GrB_Info GB_IndexUnaryOp_check // check a GraphBLAS index_unary operator
(
const GrB_IndexUnaryOp op, // GraphBLAS operator to print and check
const char *name, // name of the operator
int pr, // print level
FILE *f // file for output
) ;
GB_PUBLIC
GrB_Info GB_SelectOp_check // check a GraphBLAS select operator
(
const GxB_SelectOp op, // GraphBLAS operator to print and check
const char *name, // name of the operator
int pr, // print level
FILE *f // file for output
) ;
GB_PUBLIC
GrB_Info GB_Operator_check // check a GraphBLAS operator
(
const GB_Operator op, // GraphBLAS operator to print and check
const char *name, // name of the operator
int pr, // print level
FILE *f // file for output
) ;
GB_PUBLIC
GrB_Info GB_Monoid_check // check a GraphBLAS monoid
(
const GrB_Monoid monoid, // GraphBLAS monoid to print and check
const char *name, // name of the monoid, optional
int pr, // print level
FILE *f // file for output
) ;
GB_PUBLIC
GrB_Info GB_Semiring_check // check a GraphBLAS semiring
(
const GrB_Semiring semiring, // GraphBLAS semiring to print and check
const char *name, // name of the semiring, optional
int pr, // print level
FILE *f // file for output
) ;
GB_PUBLIC
GrB_Info GB_Descriptor_check // check a GraphBLAS descriptor
(
const GrB_Descriptor D, // GraphBLAS descriptor to print and check
const char *name, // name of the descriptor, optional
int pr, // print level
FILE *f // file for output
) ;
GB_PUBLIC
GrB_Info GB_matvec_check // check a GraphBLAS matrix or vector
(
const GrB_Matrix A, // GraphBLAS matrix to print and check
const char *name, // name of the matrix, optional
int pr, // print level; if negative, ignore nzombie
// conditions and use GB_FLIP(pr) for diagnostics
FILE *f, // file for output
const char *kind // "matrix" or "vector"
) ;
GB_PUBLIC
GrB_Info GB_Matrix_check // check a GraphBLAS matrix
(
const GrB_Matrix A, // GraphBLAS matrix to print and check
const char *name, // name of the matrix
int pr, // print level
FILE *f // file for output
) ;
GB_PUBLIC
GrB_Info GB_Vector_check // check a GraphBLAS vector
(
const GrB_Vector v, // GraphBLAS vector to print and check
const char *name, // name of the vector
int pr, // print level
FILE *f // file for output
) ;
GrB_Info GB_Scalar_check // check a GraphBLAS GrB_Scalar
(
const GrB_Scalar v, // GraphBLAS GrB_Scalar to print and check
const char *name, // name of the GrB_Scalar
int pr, // print level
FILE *f // file for output
) ;
#endif
|