suanPan
|
Namespaces | |
namespace | damping |
namespace | expression |
namespace | mass |
Typedefs | |
template<typename T > | |
using | vector = std::vector< T > |
template<typename T > | |
using | set = std::set< T > |
template<typename T > | |
using | unordered_set = std::unordered_set< T > |
template<typename T , typename D > | |
using | map = std::map< T, D > |
template<typename T , typename D > | |
using | unordered_map = std::unordered_map< T, D > |
template<typename T > | |
using | graph = vector< set< T > > |
Functions | |
unique_ptr< Material > | make_copy (const shared_ptr< Material > &) |
unique_ptr< Material > | make_copy (const unique_ptr< Material > &) |
unique_ptr< Section > | make_copy (const shared_ptr< Section > &) |
unique_ptr< Section > | make_copy (const unique_ptr< Section > &) |
unique_ptr< Section > | initialized_section_copy (const shared_ptr< DomainBase > &, uword) |
unique_ptr< SectionShell > | make_copy (const shared_ptr< SectionShell > &) |
unique_ptr< SectionShell > | make_copy (const unique_ptr< SectionShell > &) |
std::string | pattern (const std::string_view header, const std::string_view file_name, const std::string_view format) |
template<typename... T> | |
void | debug (const std::string_view file_name, const int line, const std::string_view format_str, const T &... args) |
template<typename... T> | |
void | warning (const std::string_view file_name, const int line, const std::string_view format_str, const T &... args) |
template<typename... T> | |
void | error (const std::string_view file_name, const int line, const std::string_view format_str, const T &... args) |
template<typename... T> | |
void | fatal (const std::string_view file_name, const int line, const std::string_view format_str, const T &... args) |
template<typename... T> | |
void | info (const std::string_view format_str, const T &... args) |
template<typename... T> | |
std::string | format (const std::string_view format_str, const T &... args) |
template<typename T > | |
std::string | format (const Col< T > &in_vec) |
template<typename T > | |
void | info (const Col< T > &in_vec) |
template<typename T > | |
void | info (const std::string_view format_str, const Col< T > &in_vec) |
template<typename... T> | |
void | highlight (const std::string_view format_str, const T &... args) |
template<class IN , class FN > requires requires(IN& x) { x.begin(); x.end(); } | |
void | for_all (IN &from, FN &&func) |
template<typename T > | |
T | ramp (const T in) |
template<sp_i IT, std::invocable< IT > F> | |
void | for_each (const IT start, const IT end, F &&FN) |
template<sp_i IT, std::invocable< IT > F> | |
void | for_each (const IT end, F &&FN) |
template<typename T > | |
constexpr T | max_element (T start, T end) |
template<typename T > | |
const std::vector< T > & | unique (std::vector< T > &container) |
template<typename T > | |
constexpr T & | hacker (const T &I) |
template<typename T > | |
constexpr T *& | hacker (const T *const &I) |
template<typename T > | |
T | sign (const T &I) |
template<typename T > | |
std::enable_if_t<!std::numeric_limits< T >::is_integer, bool > | approx_equal (T x, T y, int ulp=2) |
unsigned long long | binomial (unsigned long long, unsigned long long) |
char | to_upper (char) |
char | to_lower (char) |
void | to_upper (string &) |
void | to_lower (string &) |
string | to_upper (const string &) |
string | to_lower (const string &) |
string | to_upper (string &&) |
string | to_lower (string &&) |
Variables | |
std::mutex | print_mutex |
using suanpan::graph = typedef vector<set<T> > |
using suanpan::map = typedef std::map<T, D> |
using suanpan::set = typedef std::set<T> |
using suanpan::unordered_map = typedef std::unordered_map<T, D> |
using suanpan::unordered_set = typedef std::unordered_set<T> |
using suanpan::vector = typedef std::vector<T> |
std::enable_if_t<!std::numeric_limits< T >::is_integer, bool > suanpan::approx_equal | ( | T | x, |
T | y, | ||
int | ulp = 2 |
||
) |
unsigned long long suanpan::binomial | ( | unsigned long long | n, |
unsigned long long | k | ||
) |
void suanpan::debug | ( | const std::string_view | file_name, |
const int | line, | ||
const std::string_view | format_str, | ||
const T &... | args | ||
) |
void suanpan::error | ( | const std::string_view | file_name, |
const int | line, | ||
const std::string_view | format_str, | ||
const T &... | args | ||
) |
void suanpan::fatal | ( | const std::string_view | file_name, |
const int | line, | ||
const std::string_view | format_str, | ||
const T &... | args | ||
) |
void suanpan::for_all | ( | IN & | from, |
FN && | func | ||
) |
void suanpan::for_each | ( | const IT | end, |
F && | FN | ||
) |
void suanpan::for_each | ( | const IT | start, |
const IT | end, | ||
F && | FN | ||
) |
std::string suanpan::format | ( | const Col< T > & | in_vec | ) |
std::string suanpan::format | ( | const std::string_view | format_str, |
const T &... | args | ||
) |
|
constexpr |
|
constexpr |
void suanpan::highlight | ( | const std::string_view | format_str, |
const T &... | args | ||
) |
void suanpan::info | ( | const Col< T > & | in_vec | ) |
void suanpan::info | ( | const std::string_view | format_str, |
const Col< T > & | in_vec | ||
) |
void suanpan::info | ( | const std::string_view | format_str, |
const T &... | args | ||
) |
unique_ptr< Section > suanpan::initialized_section_copy | ( | const shared_ptr< DomainBase > & | D, |
uword | T | ||
) |
unique_ptr< SectionShell > suanpan::make_copy | ( | const shared_ptr< SectionShell > & | S | ) |
unique_ptr< SectionShell > suanpan::make_copy | ( | const unique_ptr< SectionShell > & | S | ) |
|
constexpr |
|
inline |
T suanpan::ramp | ( | const T | in | ) |
T suanpan::sign | ( | const T & | I | ) |
char suanpan::to_lower | ( | char | L | ) |
string suanpan::to_lower | ( | const string & | U | ) |
string suanpan::to_lower | ( | string && | U | ) |
void suanpan::to_lower | ( | string & | U | ) |
char suanpan::to_upper | ( | char | U | ) |
string suanpan::to_upper | ( | const string & | U | ) |
string suanpan::to_upper | ( | string && | U | ) |
void suanpan::to_upper | ( | string & | U | ) |
const std::vector< T > & suanpan::unique | ( | std::vector< T > & | container | ) |
void suanpan::warning | ( | const std::string_view | file_name, |
const int | line, | ||
const std::string_view | format_str, | ||
const T &... | args | ||
) |
|
inline |