1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
//------------------------------------------------------------------------------
// gb_is_integer: check if a GrB_Type is integer
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
//------------------------------------------------------------------------------
#include "gb_interface.h"
bool gb_is_integer (const GrB_Type type)
{
return ((type == GrB_INT8 ) ||
(type == GrB_INT16 ) ||
(type == GrB_INT32 ) ||
(type == GrB_INT64 ) ||
(type == GrB_UINT8 ) ||
(type == GrB_UINT16) ||
(type == GrB_UINT32) ||
(type == GrB_UINT64)) ;
}
|