pocketpy/3rd/numpy/include/xtl/xhalf_float.hpp
Anurag Bhat 86b4fc623c
Merge numpy to pocketpy (#303)
* Merge numpy to pocketpy

* Add CI

* Fix CI
2024-09-02 16:22:41 +08:00

42 lines
1.1 KiB
C++

/***************************************************************************
* Copyright (c) Johan Mabille, Sylvain Corlay and Wolf Vollprecht *
* Copyright (c) QuantStack *
* *
* Distributed under the terms of the BSD 3-Clause License. *
* *
* The full license is in the file LICENSE, distributed with this software. *
****************************************************************************/
#ifndef XTL_XHALF_FLOAT_HPP
#define XTL_XHALF_FLOAT_HPP
#include "xtype_traits.hpp"
#include "xhalf_float_impl.hpp"
namespace xtl
{
using half_float = half_float::half;
template <>
struct is_scalar<half_float> : std::true_type
{
};
template <>
struct is_arithmetic<half_float> : std::true_type
{
};
template <>
struct is_signed<half_float> : std::true_type
{
};
template <>
struct is_floating_point<half_float> : std::true_type
{
};
}
#endif