1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
//------------------------------------------------------------------------------
// gb_is_float: check if a GrB_Type is floating-point
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
//------------------------------------------------------------------------------
#include "gb_interface.h"
bool gb_is_float (const GrB_Type type)
{
return ((type == GrB_FP32 ) ||
(type == GrB_FP64 ) ||
(type == GxB_FC32 ) ||
(type == GxB_FC64 )) ;
}
|