|
template<typename T > |
std::vector< T > | nemAux::flatten (const std::vector< std::vector< T >> &v) |
|
template<typename T > |
std::vector< std::vector< T > > | nemAux::fold (const std::vector< T > &v, int dim) |
|
template<typename T > |
std::vector< T > | nemAux::operator+ (const std::vector< T > &x, const std::vector< T > &y) |
|
template<typename T > |
std::vector< T > | nemAux::operator- (const std::vector< T > &x, const std::vector< T > &y) |
|
template<typename T > |
std::vector< T > | nemAux::operator* (T a, const std::vector< T > &x) |
|
template<typename T > |
std::vector< T > | nemAux::hadamard (const std::vector< T > &x, const std::vector< T > &y) |
|
template<typename T > |
T | nemAux::l2_Norm (const std::vector< T > &x) |
|
template<typename T > |
T | nemAux::reciprocal (T x) |
|
template<typename T > |
void | nemAux::reciprocal_vec (std::vector< T > &x) |
|
template<typename T > |
bool | nemAux::hasZero (const std::vector< T > &x) |
|
template<typename T > |
std::vector< T > | nemAux::getMinMax (const std::vector< T > &x) |
|
template<typename T > |
T | nemAux::scale_to_range (T x, const std::vector< T > &xminmax, const std::vector< T > &yminmax) |
|
template<typename T > |
void | nemAux::scale_vec_to_range (std::vector< T > &x, const std::vector< T > &xminmax, const std::vector< T > &yminmax) |
|
template<typename T > |
std::vector< T > | nemAux::getMeanStdev (const std::vector< T > &x) |
|
template<typename T > |
std::vector< bool > | nemAux::cellsToRefine (const std::vector< T > &values, T tol) |
|
template<typename T > |
std::vector< bool > | nemAux::cellsToRefineStdev (const std::vector< T > &values, T mean, T dev) |
|
template<typename T > |
std::vector< bool > | nemAux::cellsToRefineMaxdev (const std::vector< T > &values, T dev) |
|
std::string | nemAux::trim_fname (const std::string &name, const std::string &ext) |
|
std::string | nemAux::find_ext (const std::string &fname) |
|
void | nemAux::toLower (std::string &str) |
|
void | nemAux::toUpper (std::string &str) |
|
std::string | nemAux::findToStr (const std::string &str, const std::string &ptrn) |
|
std::string | nemAux::findFromStr (const std::string &str, const std::string &ptrn) |
|
std::string | nemAux::getTimeStr () |
|
std::string | nemAux::find_name (const std::string &fname) |
|
template<typename T > |
void | nemAux::printVec (const std::vector< T > &v) |
|
template<typename T > |
bool | nemAux::valInVec (const std::vector< T > &v, T val) |
|
template<typename A , typename B > |
std::pair< B, A > | nemAux::flip_pair (const std::pair< A, B > &p) |
|
template<typename A , typename B > |
std::multimap< B, A > | nemAux::flip_map (const std::map< A, B > &src) |
|
template<typename T > |
bool | nemAux::isInBBox (const std::vector< T > &crd, const std::vector< T > &bb) |
|
template<typename A , typename B > |
std::vector< A > | nemAux::getSortedKeys (const std::map< A, B > &mapObj) |
|
std::string | nemAux::getRandomString (int length) |
|
std::shared_ptr< char > | nemAux::strToChar (const std::string &strng) |
|
std::vector< std::string > | nemAux::Tokenize (const std::string &lineIn, const char &delim) |
|
std::vector< std::string > | nemAux::Tokenize (const std::string &lineIn, const std::string &delim) |
|
template<typename A , typename B > |
A | nemAux::leastUnusedKey (const std::map< A, B > &map, A min=1) |
|