Added Eigen::numext typedefs for uint8_t, int8_t, uint16_t and int16_t

This commit is contained in:
Joel Holdsworth 2019-11-25 13:59:25 +00:00
parent 15b3bcfca0
commit e87af0ed37

View File

@ -688,6 +688,10 @@ inline unsigned int as_uint(float x)
#include <cstdint>
namespace Eigen {
namespace numext {
typedef std::uint8_t uint8_t;
typedef std::int8_t int8_t;
typedef std::uint16_t uint16_t;
typedef std::int16_t int16_t;
typedef std::uint32_t uint32_t;
typedef std::int32_t int32_t;
typedef std::uint64_t uint64_t;
@ -700,6 +704,10 @@ typedef std::int64_t int64_t;
#include <stdint.h>
namespace Eigen {
namespace numext {
typedef ::uint8_t uint8_t;
typedef ::int8_t int8_t;
typedef ::uint16_t uint16_t;
typedef ::int16_t int16_t;
typedef ::uint32_t uint32_t;
typedef ::int32_t int32_t;
typedef ::uint64_t uint64_t;