Code assisting with the binary encoding of variables in numpy format. More...
#include <cassert>
#include <string_view>
Go to the source code of this file.
Classes | |
struct | compute_numpy_type< T > |
struct | compute_numpy_type< std::array< EL, SIZE > > |
Functions | |
template<typename T > | |
const char * | get_numpy_element () |
Variables | |
constexpr std::string_view | itrace_numpy_header {"('thread','<i8'),('start','<u8'),('end','<u8'),('cycles', '<u8')"} |
Code assisting with the binary encoding of variables in numpy format.
=============================================================================
Copyright (c) 2024 Qualcomm Technologies Incorporated.
|
inline |
Internal helper function that creates a Numpy dtype string for builtin arithmetic types. Due to the complexities and undefinedness of C/C++ builtin types, this effectily matches the dtypes based on the trait properties of the type