misc.cpp
Go to the documentation of this file.
#include <itpp/base/math/misc.h>
#ifndef _MSC_VER
# include <itpp/config.h>
#else
# include <itpp/config_msvc.h>
#endif
namespace itpp
{
std::string itpp_version(void)
{
#ifdef PACKAGE_VERSION
return std::string(PACKAGE_VERSION);
#else
return std::string("Warning: Version unknown!");
#endif
}
bool is_bigendian()
{
int i = 1;
char *p = reinterpret_cast<char *>(&i);
if (p[0] == 1) // Lowest address contains the least significant byte
return false; // LITTLE_ENDIAN
else
return true; // BIG_ENDIAN
}
} //namespace itpp
itpp::Array
General array class.
Definition array.h:105
itpp::is_bigendian
bool is_bigendian()
Returns true if machine endianness is BIG_ENDIAN.
Definition misc.cpp:50
itpp::itpp_version
std::string itpp_version(void)
Returns IT++ library version number, e.g. "3.7.1".
Definition misc.cpp:41
misc.h
Miscellaneous functions - header file.
itpp
itpp namespace
Definition itmex.h:37

Generated on Mon Jun 10 2024 11:49:18 for IT++ by Doxygen 1.9.8