Skip to content

Commit

Permalink
revert to non _Generic methods in wildtype_demo
Browse files Browse the repository at this point in the history
  • Loading branch information
DrTimothyAldenDavis committed Jan 2, 2023
1 parent 9c45a9d commit 056de76
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Demo/Program/wildtype_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,19 +412,14 @@ int main (void)
GxB_Matrix_fprint (E, "E (positional j)", GxB_COMPLETE, NULL) ;

// do something invalid
// info = GrB_Matrix_eWiseAdd_BinaryOp (C, NULL, NULL, WildAdd, A, D, NULL) ;
info = GrB_eWiseAdd (C, NULL, NULL, WildAdd, A, D, NULL) ;
info = GrB_Matrix_eWiseAdd_BinaryOp (C, NULL, NULL, WildAdd, A, D, NULL) ;
if (info != GrB_SUCCESS)
{
const char *s ;
GrB_error (&s, C) ;
GrB_Matrix_error (&s, C) ;
printf ("\nThis is supposed to fail, as a demo of GrB_error:\n%s\n", s);
}

// try GxB_get
GxB_get (GxB_MODE, &mode) ;
printf ("mode: %d\n", (int) mode) ;

// free everyting
GrB_Matrix_free (&C) ;
GrB_Matrix_free (&A) ;
Expand Down

0 comments on commit 056de76

Please sign in to comment.