tsaUtilityFunctions

namespace tsa

The main namespace of the library.

tsa namespace

namespace

tsa namespace

Tag() is a small XML-tag-name formatting helper, kept (and still bound to Python, see pytsa.cpp) even though its original caller — the DVECTOR_XML_SERIALIZE/DMATRIX_XML_SERIALIZE/BOOL_XML_SERIALIZE macros this file used to also define, wrapping the now-removed eternity XML persistence framework — is gone (see CerealPersistence.hpp for the modern replacement, plain Cereal serialize() members, no string tags needed).

class ParseParameterString
#include <tsaUtilityFunctions.hpp>

Public Functions

inline ParseParameterString(const std::string &parlist)
inline ~ParseParameterString()
inline double GetFloat(int n)
inline int GetInt(int n)
inline std::string GetString(int n)

Private Members

FunctionParser fparser
char *mParList
char *mTmp
class MathUtils
#include <tsaUtilityFunctions.hpp>

Public Static Functions

static inline unsigned int isqrt(unsigned long val)

Evaluate the integer square root of a number.

Parameters:

val – input number

Returns:

integer square root of val

static inline int gcd(int u, int v)

Find the great common divisor between two numbers u and v

Parameters:
  • u – first number

  • v – second number

Returns:

the great common divisor between u and v

static inline int max(int u, int v)
static inline int min(int u, int v)
class UpperTriangular
#include <tsaUtilityFunctions.hpp>

Public Static Functions

static inline unsigned int Map(unsigned int i, unsigned int j, unsigned int dim)
static inline unsigned int Size(unsigned int dim)
static inline unsigned int Dimension(unsigned int sz)
class LowerTriangular
#include <tsaUtilityFunctions.hpp>

Public Static Functions

static inline unsigned int Map(unsigned int i, unsigned int j, unsigned int)
static inline unsigned int Size(unsigned int dim)
static inline unsigned int Dimension(unsigned int sz)
class StrictUpperTriangular
#include <tsaUtilityFunctions.hpp>

Public Static Functions

static inline unsigned int Map(unsigned int i, unsigned int j, unsigned int dim)
static inline unsigned int Size(unsigned int dim)
static inline unsigned int Dimension(unsigned int sz)
class StrictLowerTriangular
#include <tsaUtilityFunctions.hpp>

Public Static Functions

static inline unsigned int Map(unsigned int i, unsigned int j, unsigned int)
static inline unsigned int Size(unsigned int dim)
static inline unsigned int Dimension(unsigned int sz)
class Square
#include <tsaUtilityFunctions.hpp>

Public Static Functions

static inline unsigned int Map(unsigned int i, unsigned int j, unsigned lda)
static inline unsigned int Size(unsigned int dim)
static inline unsigned int Dimension(unsigned int sz)
class GetRe
#include <tsaUtilityFunctions.hpp>

Public Static Functions

template<typename T>
static inline double convert_double(const T &value)
class GetIm
#include <tsaUtilityFunctions.hpp>

Public Static Functions

template<typename T>
static inline double convert_double(const T &value)
class GetAbs
#include <tsaUtilityFunctions.hpp>

Public Static Functions

template<typename T>
static inline double convert_double(const T &value)
class GetAbs2
#include <tsaUtilityFunctions.hpp>

Public Static Functions

template<typename T>
static inline double convert_double(const T &value)
class GetPhase
#include <tsaUtilityFunctions.hpp>

Public Static Functions

template<typename T>
static inline double convert_double(const T &value)