forpy  2
checks.h File Reference
#include <algorithm>
#include <functional>
#include <limits>
#include <type_traits>
#include <vector>
#include "../global.h"

Go to the source code of this file.

Namespaces

 forpy
 

Macros

#define FORPY_UTIL_CHECKS_H_
 

Functions

template<typename T >
static bool forpy::safe_pos_sum_lessoe_than (const std::vector< T > &vec, const T &limit)
 Tests whether the sum of all elements in vec is less than limit. More...
 
template<typename T >
static bool forpy::safe_pos_sum_lessoe_than (const std::vector< T > &vec1, const std::vector< T > &vec2, const T &limit)
 Tests whether the sum of all elements in vec1 and vec2 is less than limit. More...
 
template<typename T >
static bool forpy::safe_pos_sum_lessoe_than (const std::vector< T > &vec)
 Tests whether the sum of all elements in vec is less than the numeric limit of its type. More...
 
template<typename T >
static bool forpy::safe_pos_sum_lessoe_than (const std::vector< T > &vec1, const std::vector< T > &vec2)
 Tests whether the sum of all elements in vec1 and vec2 is less than the numeric limit of their type. More...
 
static bool forpy::check_elem_ids_ok (const size_t &n_samples, const std::vector< size_t > &elem_ids)
 Tests whether all element ids are valid. More...
 

Macro Definition Documentation

◆ FORPY_UTIL_CHECKS_H_

#define FORPY_UTIL_CHECKS_H_

Definition at line 4 of file checks.h.