1 //------------------------------------------------------------------------------
2 // GB_Matrix_check: print a GraphBLAS matrix and check if it is valid
3 //------------------------------------------------------------------------------
4
5 // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
6 // SPDX-License-Identifier: Apache-2.0
7
8 //------------------------------------------------------------------------------
9
10 #include "GB.h"
11
12 GB_PUBLIC // accessed by the MATLAB tests in GraphBLAS/Test only
GB_Matrix_check(const GrB_Matrix A,const char * name,int pr,FILE * f)13 GrB_Info GB_Matrix_check // check a GraphBLAS matrix
14 (
15 const GrB_Matrix A, // GraphBLAS matrix to print and check
16 const char *name, // name of the matrix
17 int pr, // print level
18 FILE *f // file for output
19 )
20 {
21 return (GB_matvec_check (A, name, pr, f, "matrix")) ;
22 }
23
24