#include <iostream>
#include <armadillo/armadillo>
#include <armadillo/ext_def_lapack.hpp>
#include <filesystem>
#include <fmt/color.h>
#include <mutex>
#include <functional>
#include <memory>
Go to the source code of this file.
|
| template<typename T > |
| auto | bcast_from_root (T &&object) |
| |
| template<typename T > |
| auto | allreduce (T &&object) |
| |
| template<typename T > |
| auto | reduce (T &&object) |
| |
| std::string | suanpan::pattern (const std::string_view header, const std::string_view file_name, const std::string_view format) |
| |
| template<typename... T> |
| void | suanpan::debug (const std::string_view file_name, const int line, const std::string_view format_str, const T &... args) |
| |
| template<typename... T> |
| void | suanpan::warning (const std::string_view file_name, const int line, const std::string_view format_str, const T &... args) |
| |
| template<typename... T> |
| void | suanpan::error (const std::string_view file_name, const int line, const std::string_view format_str, const T &... args) |
| |
| template<typename... T> |
| void | suanpan::fatal (const std::string_view file_name, const int line, const std::string_view format_str, const T &... args) |
| |
| template<typename... T> |
| void | suanpan::info (const std::string_view format_sv, const T &... args) |
| |
| template<typename... T> |
| std::string | suanpan::format (const std::string_view format_str, const T &... args) |
| |
| template<typename T > |
| std::string | suanpan::format (const Col< T > &in_vec) |
| |
| template<typename T > |
| void | suanpan::info (const Col< T > &in_vec) |
| |
| template<typename T > |
| void | suanpan::info (const std::string_view format_sv, const Col< T > &in_vec) |
| |
| template<typename... T> |
| void | suanpan::highlight (const std::string_view format_sv, const T &... args) |
| |
| void | suanpan_assert (const std::function< void()> &F) |
| |
template<class IN , class FN >
requires requires(IN& x) { x.begin(); x.end(); } |
| void | suanpan::for_all (IN &from, FN &&func) |
| |
| template<typename T1 > |
| enable_if2< is_arma_type< T1 >::value, typenameT1::pod_type >::result | inf_norm (const T1 &X) |
| |
◆ _strcmpi
| #define _strcmpi strcasecmp |
◆ ARMA_CERR_STREAM
◆ ARMA_COUT_STREAM
◆ ARMA_USE_SUPERLU
◆ SUANPAN_DEBUG
◆ suanpan_debug
| #define suanpan_debug |
( |
|
... | ) |
suanpan::debug(__FILE__, __LINE__, ##__VA_ARGS__) |
◆ suanpan_error
| #define suanpan_error |
( |
|
... | ) |
suanpan::error(__FILE__, __LINE__, ##__VA_ARGS__) |
◆ SUANPAN_EXPORT
| #define SUANPAN_EXPORT extern "C" |
◆ SUANPAN_EXTRA_DEBUG
| #define SUANPAN_EXTRA_DEBUG |
◆ suanpan_fatal
| #define suanpan_fatal |
( |
|
... | ) |
suanpan::fatal(__FILE__, __LINE__, ##__VA_ARGS__) |
◆ suanpan_for_each
| #define suanpan_for_each std::for_each |
◆ suanpan_highlight
◆ SUANPAN_IMPORT
| #define SUANPAN_IMPORT extern "C" |
◆ suanpan_info
◆ suanpan_sort
| #define suanpan_sort std::sort |
◆ suanpan_warning
| #define suanpan_warning |
( |
|
... | ) |
suanpan::warning(__FILE__, __LINE__, ##__VA_ARGS__) |
◆ allreduce()
| auto allreduce |
( |
T && |
object | ) |
|
◆ bcast_from_root()
| auto bcast_from_root |
( |
T && |
object | ) |
|
◆ inf_norm()
template<typename T1 >
| enable_if2< is_arma_type< T1 >::value, typenameT1::pod_type >::result inf_norm |
( |
const T1 & |
X | ) |
|
◆ reduce()
| auto reduce |
( |
T && |
object | ) |
|
◆ suanpan_assert()
| void suanpan_assert |
( |
const std::function< void()> & |
F | ) |
|
|
inline |
◆ comm_rank
| constexpr auto comm_rank {0} |
|
inlineconstexpr |
◆ comm_size
| constexpr auto comm_size {1} |
|
inlineconstexpr |
◆ SUANPAN_CERR
| auto& SUANPAN_CERR = std::cout |
|
inline |
◆ SUANPAN_CFTL
| auto& SUANPAN_CFTL = std::cout |
|
inline |
◆ SUANPAN_COLOR
◆ SUANPAN_COUT
| auto& SUANPAN_COUT = std::cout |
|
inline |
◆ SUANPAN_CWRN
| auto& SUANPAN_CWRN = std::cout |
|
inline |
◆ SUANPAN_ERROR_COUNT
◆ SUANPAN_EXIT
| constexpr auto SUANPAN_EXIT = 1 |
|
constexpr |
◆ SUANPAN_FAIL
| constexpr auto SUANPAN_FAIL = -1 |
|
constexpr |
◆ SUANPAN_PRINT
◆ SUANPAN_SUCCESS
| constexpr auto SUANPAN_SUCCESS = 0 |
|
constexpr |
◆ SUANPAN_VERBOSE
◆ SUANPAN_WARNING_COUNT