|
struct | csvm_backend_exists< cuda::csvm > |
| Sets the value to true since C-SVMs using the CUDA backend are available. More...
|
|
class | gpu_csvm |
| A C-SVM implementation for all GPU backends to reduce code duplication. More...
|
|
class | gpu_device_ptr |
| Small wrapper class around a GPU device pointer together with commonly used device functions for all GPU backends to reduce code duplication. More...
|
|
struct | csvm_backend_exists< hip::csvm > |
| Sets the value to true since C-SVMs using the HIP backend are available. More...
|
|
struct | csvm_backend_exists< opencl::csvm > |
| Sets the value to true since C-SVMs using the OpenCL backend are available. More...
|
|
struct | csvm_backend_exists< openmp::csvm > |
| Sets the value to true since C-SVMs using the OpenMP backend are available. More...
|
|
struct | csvm_backend_exists< dpcpp::csvm > |
| Sets the value to true since C-SVMs using the SYCL backend with DPC++ as SYCL implementation are available. More...
|
|
struct | csvm_backend_exists< hipsycl::csvm > |
| Sets the value to true since C-SVMs using the SYCL backend with hipSYCL as SYCL implementation are available. More...
|
|
class | execution_range |
| Class specifying a backend independent execution range. More...
|
|
struct | tracking_entry |
| A single tracking entry containing a specific category, a unique name, and the actual value to be tracked. More...
|
|
struct | is_tracking_entry |
| Check whether T is a tracking entry. Ignores all top-level const, volatile, and reference qualifiers. More...
|
|
class | performance_tracker |
| Store the tracked information during calls to plssvm-train , plssvm-predict , and plssvm-scale . More...
|
|
class | sha256 |
| A hashing struct used for sha256 hashing. More...
|
|
struct | real_type_label_type_combination |
| Encapsulates a combination of a used real_type (float or double ) and label_type (an arithmetic type or std::string ). More...
|
|
struct | concat_tuple_types |
|
struct | concat_tuple_types< std::tuple< FirstTupleTypes... >, std::tuple< SecondTupleTypes... > > |
| Concatenate the types of the two tuples to a new tuple type. More...
|
|
struct | cartesian_type_product |
|
struct | cartesian_type_product< std::tuple< FirstTupleType, FirstTupleRemainingTypes... >, std::tuple< SecondTupleTypes... > > |
| Calculate the cartesian product of the types in two tuples and return a new tuple with the corresponding real_type_label_type_combination types. More...
|
|
struct | cartesian_type_product< std::tuple<>, std::tuple< SecondTupleTypes... > > |
|
struct | type_list_contains |
| Checks whether the type T is present in the Tuple . More...
|
|
struct | type_list_contains< T, std::tuple< Types... > > |
| Checks whether the type T is present in the tuple Types . More...
|
|
struct | is_array |
| Type trait to check whether T is a std::array . More...
|
|
struct | is_array< std::array< T, I > > |
| Type trait to check whether T is a std::array . More...
|
|
struct | is_vector |
| Type trait to check whether T is a std::vector . More...
|
|
struct | is_vector< std::vector< T > > |
| Type trait to check whether T is a std::vector . More...
|
|
struct | is_deque |
| Type trait to check whether T is a std::deque . More...
|
|
struct | is_deque< std::deque< T > > |
| Type trait to check whether T is a std::deque . More...
|
|
struct | is_forward_list |
| Type trait to check whether T is a std::forward_list . More...
|
|
struct | is_forward_list< std::forward_list< T > > |
| Type trait to check whether T is a std::forward_list . More...
|
|
struct | is_list |
| Type trait to check whether T is a std::list . More...
|
|
struct | is_list< std::list< T > > |
| Type trait to check whether T is a std::list . More...
|
|
struct | is_set |
| Type trait to check whether T is a std::set . More...
|
|
struct | is_set< std::set< T > > |
| Type trait to check whether T is a std::set . More...
|
|
struct | is_map |
| Type trait to check whether T is a std::map . More...
|
|
struct | is_map< std::map< Key, T > > |
| Type trait to check whether T is a std::map . More...
|
|
struct | is_multiset |
| Type trait to check whether T is a std::multiset . More...
|
|
struct | is_multiset< std::multiset< T > > |
| Type trait to check whether T is a std::multiset . More...
|
|
struct | is_multimap |
| Type trait to check whether T is a std::multimap . More...
|
|
struct | is_multimap< std::multimap< Key, T > > |
| Type trait to check whether T is a std::multimap . More...
|
|
struct | is_unordered_set |
| Type trait to check whether T is a std::unordered_set . More...
|
|
struct | is_unordered_set< std::unordered_set< T > > |
| Type trait to check whether T is a std::unordered_set . More...
|
|
struct | is_unordered_map |
| Type trait to check whether T is a std::unordered_map . More...
|
|
struct | is_unordered_map< std::unordered_map< Key, T > > |
| Type trait to check whether T is a std::unordered_map . More...
|
|
struct | is_unordered_multiset |
| Type trait to check whether T is a std::unordered_multiset . More...
|
|
struct | is_unordered_multiset< std::unordered_multiset< T > > |
| Type trait to check whether T is a std::unordered_multiset . More...
|
|
struct | is_unordered_multimap |
| Type trait to check whether T is a std::unordered_multimap . More...
|
|
struct | is_unordered_multimap< std::unordered_multimap< Key, T > > |
| Type trait to check whether T is a std::unordered_multimap . More...
|
|
struct | parameter |
| Class for encapsulating all important C-SVM parameters. More...
|
|
|
template<typename csvm_type , typename... Args> |
std::unique_ptr< csvm > | make_csvm_default_impl ([[maybe_unused]] Args &&...args) |
| Construct a C-SVM using the parameters args . More...
|
|
template<typename... Args> |
std::unique_ptr< csvm > | make_csvm_sycl_impl ([[maybe_unused]] Args &&...args) |
| Construct a SYCL C-SVM using the parameters args . More...
|
|
template<typename... Args> |
std::unique_ptr< csvm > | make_csvm_impl (const backend_type backend, Args &&...args) |
| Create a new C-SVM using the backend type and the additional parameter args . More...
|
|
template<typename T > |
constexpr std::string_view | arithmetic_type_name ()=delete |
| Tries to convert the given type to its name as string representation including possible const and/or volatile qualifiers. More...
|
|
template<typename... Args> |
void | check_assertion (const bool cond, const std::string_view cond_str, const source_location &loc, const std::string_view msg, Args &&...args) |
| Function called by the PLSSVM_ASSERT macro. Checks the assertion condition. If the condition evaluates to false , prints the assertion condition together with additional information (e.g., plssvm::source_location information) and aborts the program. More...
|
|
std::ostream & | operator<< (std::ostream &out, const execution_range &range) |
| Output the execution range to the given output-stream out . More...
|
|
std::ostream & | operator<< (std::ostream &out, layout_type layout) |
| Output the layout to the given output-stream out . More...
|
|
std::istream & | operator>> (std::istream &in, layout_type &layout) |
| Use the input-stream in to initialize the layout type. More...
|
|
template<typename real_type > |
std::vector< real_type > | transform_to_aos_layout (const std::vector< std::vector< real_type >> &matrix, const std::size_t boundary_size, const std::size_t num_points, const std::size_t num_features) |
| Convert a 2D matrix into a 1D array in Array-of-Structs layout adding boundary_size values per data point for padding. More...
|
|
template<typename real_type > |
std::vector< real_type > | transform_to_soa_layout (const std::vector< std::vector< real_type >> &matrix, const std::size_t boundary_size, const std::size_t num_points, const std::size_t num_features) |
| Convert a 2D matrix into a 1D array in Struct-of-Arrays layout adding boundary_size values per feature for padding. More...
|
|
template<typename real_type > |
std::vector< real_type > | transform_to_layout (const layout_type layout, const std::vector< std::vector< real_type >> &matrix, const std::size_t boundary_size, const std::size_t num_points) |
| Convert a 2D matrix into a 1D array in the layout adding boundary_size values per data point or feature respectively for padding. More...
|
|
template<typename... Args> |
void | log (const verbosity_level verb, const std::string_view msg, Args &&...args) |
|
template<typename T > |
std::ostream & | operator<< (std::ostream &out, const tracking_entry< T > &entry) |
| Output the tracking entry to the given output-stream out . Only the tracked value is output excluding the category and name. More...
|
|
template<typename T , typename Exception = std::runtime_error, PLSSVM_REQUIRES((std::is_arithmetic_v< T >||std::is_same_v< remove_cvref_t< T >, std::string >)) > |
T | convert_to (const std::string_view str) |
| Converts the string str to a value of type T . More...
|
|
template<typename T > |
T | extract_first_integer_from_string (std::string_view str) |
| Extract the first integer from the given string str and converts it to T ignoring a potential sign. More...
|
|
template<typename T > |
std::vector< T > | split_as (const std::string_view str, const char delim=' ') |
| Split the string str at the positions with delimiter delim and return the sub-strings converted to the type T . More...
|
|
bool | starts_with (std::string_view str, std::string_view sv) noexcept |
| Checks if the string str starts with the prefix sv . More...
|
|
bool | starts_with (std::string_view str, char c) noexcept |
| Checks if the string str starts with the character c . More...
|
|
bool | ends_with (std::string_view str, std::string_view sv) noexcept |
| Checks if the string str ends with the suffix sv . More...
|
|
bool | ends_with (std::string_view str, char c) noexcept |
| Checks if the string str ends with the character c . More...
|
|
bool | contains (std::string_view str, std::string_view sv) noexcept |
| Checks if the string str contains the string sv . More...
|
|
bool | contains (std::string_view str, char c) noexcept |
| Checks if the string str contains the character c . More...
|
|
std::string_view | trim_left (std::string_view str) noexcept |
| Returns a new std::string_view equal to str where all leading whitespaces are removed. More...
|
|
std::string_view | trim_right (std::string_view str) noexcept |
| Returns a new std::string_view equal to str where all trailing whitespaces are removed. More...
|
|
std::string_view | trim (std::string_view str) noexcept |
| Returns a new std::string_view equal to str where all leading and trailing whitespaces are removed. More...
|
|
std::string & | replace_all (std::string &str, std::string_view what, std::string_view with) |
| Replaces all occurrences of what with with in the string str . More...
|
|
std::string & | to_lower_case (std::string &str) |
| Convert the string str to its all lower case representation. More...
|
|
std::string | as_lower_case (std::string_view str) |
| Return a new string with the same content as str but all lower case. More...
|
|
std::string & | to_upper_case (std::string &str) |
| Convert the string str to its all upper case representation. More...
|
|
std::string | as_upper_case (std::string_view str) |
| Return a new string with the same content as str but all upper case. More...
|
|
std::vector< std::string_view > | split (std::string_view str, char delim=' ') |
| Split the string str at the positions with delimiter delim and return the sub-strings. More...
|
|
void | unreachable () |
| Invokes undefined behavior. Used to mark code paths that may never be reachable. More...
|
|
template<std::size_t I, typename... Types> |
constexpr decltype(auto) | get (Types &&...args) noexcept |
| Get the I-th element of the parameter pack args at compile-time. More...
|
|
template<typename Enum > |
constexpr std::underlying_type_t< Enum > | to_underlying (const Enum e) noexcept |
| Converts an enumeration to its underlying type. More...
|
|
template<typename Enum > |
constexpr std::underlying_type_t< Enum > | to_underlying (const default_value< Enum > &e) noexcept |
| Converts an enumeration wrapped in a plssvm::default_value to its underlying type. More...
|
|
template<typename Container , typename Pred , PLSSVM_REQUIRES(is_container_v< Container >) > |
Container::size_type | erase_if (Container &c, Pred pred) |
| Implements an erase_if function for different containers according to https://en.cppreference.com/w/cpp/container/map/erase_if. More...
|
|
template<typename Container , typename T , PLSSVM_REQUIRES(is_container_v< Container >) > |
bool | contains (const Container &c, const T &val) |
| Check whether the Container c contains the value val . More...
|
|
std::string | current_date_time () |
| Return the current date time in the format "YYYY-MM-DD hh:mm:ss". More...
|
|
template<typename ExpectedType , typename IgorParser , typename NamedArgType > |
ExpectedType | get_value_from_named_parameter (const IgorParser &parser, const NamedArgType &named_arg) |
| Parse the value hold be named_arg and return it converted to the ExpectedType . More...
|
|
template<typename T > |
constexpr bool | operator== (const parameter< T > &lhs, const parameter< T > &rhs) noexcept |
| Compares the two parameter sets lhs and rhs for equality. More...
|
|
template<typename T > |
constexpr bool | operator!= (const parameter< T > &lhs, const parameter< T > &rhs) noexcept |
| Compares the two parameter sets lhs and rhs for inequality. More...
|
|
template<typename T > |
constexpr bool | equivalent (const parameter< T > &lhs, const parameter< T > &rhs) noexcept |
| Checks whether the two parameter sets lhs and rhs are equivalent. More...
|
|
template<typename T > |
std::ostream & | operator<< (std::ostream &out, const parameter< T > ¶ms) |
| Output all parameters encapsulated by params to the given output-stream out . More...
|
|
|
template<typename T > |
constexpr bool | is_tracking_entry_v = is_tracking_entry<T>::value |
|
std::shared_ptr< performance_tracker > | global_tracker |
| The global performance tracker instance used for the default tracking.
|
|
template<typename T , typename Tuple > |
constexpr bool | type_list_contains_v = type_list_contains<T, Tuple>::value |
| Checks whether the type T is present in the Tuple .
|
|
template<typename > |
constexpr bool | always_false_v = false |
| Type-dependent expression that always evaluates to false .
|
|
template<typename T > |
constexpr bool | is_array_v = is_array<T>::value |
| Type trait to check whether T is a std::array .
|
|
template<typename T > |
constexpr bool | is_vector_v = is_vector<T>::value |
| Type trait to check whether T is a std::vector .
|
|
template<typename T > |
constexpr bool | is_deque_v = is_deque<T>::value |
| Type trait to check whether T is a std::deque .
|
|
template<typename T > |
constexpr bool | is_forward_list_v = is_forward_list<T>::value |
| Type trait to check whether T is a std::forward_list .
|
|
template<typename T > |
constexpr bool | is_list_v = is_list<T>::value |
| Type trait to check whether T is a std::list .
|
|
template<typename T > |
constexpr bool | is_sequence_container_v = is_array_v<T> || is_vector_v<T> || is_deque_v<T> || is_forward_list_v<T> || is_list_v<T> |
| Type trait to check whether T is a sequence container.
|
|
template<typename T > |
constexpr bool | is_set_v = is_set<T>::value |
| Type trait to check whether T is a std::set .
|
|
template<typename T > |
constexpr bool | is_map_v = is_map<T>::value |
| Type trait to check whether T is a std::map .
|
|
template<typename T > |
constexpr bool | is_multiset_v = is_multiset<T>::value |
| Type trait to check whether T is a std::multiset .
|
|
template<typename T > |
constexpr bool | is_multimap_v = is_multimap<T>::value |
| Type trait to check whether T is a std::multimap .
|
|
template<typename T > |
constexpr bool | is_associative_container_v = is_set_v<T> || is_map_v<T> || is_multimap_v<T> || is_multiset_v<T> |
| Type trait to check whether T is a associative container.
|
|
template<typename T > |
constexpr bool | is_unordered_set_v = is_unordered_set<T>::value |
| Type trait to check whether T is a std::unordered_set .
|
|
template<typename T > |
constexpr bool | is_unordered_map_v = is_unordered_map<T>::value |
| Type trait to check whether T is a std::unordered_map .
|
|
template<typename T > |
constexpr bool | is_unordered_multiset_v = is_unordered_multiset<T>::value |
| Type trait to check whether T is a std::unordered_multiset .
|
|
template<typename T > |
constexpr bool | is_unordered_multimap_v = is_unordered_multimap<T>::value |
| Type trait to check whether T is a std::unordered_multimap .
|
|
template<typename T > |
constexpr bool | is_unordered_associative_container_v = is_unordered_set_v<T> || is_unordered_map_v<T> || is_unordered_multimap_v<T> || is_unordered_multiset_v<T> |
| Type trait to check whether T is a unordered associative container.
|
|
template<typename T > |
constexpr bool | is_container_v = is_sequence_container_v<T> || is_associative_container_v<T> || is_unordered_associative_container_v<T> |
| Type trait to check whether T is a container.
|
|
template<typename... Args> |
constexpr bool | has_only_named_args_v = !igor::has_unnamed_arguments<Args...>() |
| Trait to check whether Args only contains named-parameter.
|
|
template<typename... Args> |
constexpr bool | has_only_parameter_named_args_v = !igor::has_other_than<Args...>(plssvm::kernel_type, plssvm::gamma, plssvm::degree, plssvm::coef0, plssvm::cost) |
| Trait to check whether Args only contains named-parameter that can be used to initialize a plssvm::parameter struct.
|
|
template<typename... Args> |
constexpr bool | has_only_sycl_parameter_named_args_v = !igor::has_other_than<Args...>(plssvm::kernel_type, plssvm::gamma, plssvm::degree, plssvm::coef0, plssvm::cost, plssvm::sycl_implementation_type, plssvm::sycl_kernel_invocation_type) |
| Trait to check whether Args only contains named-parameter that can be used to initialize a plssvm::parameter struct including SYCL specific named-parameters.
|
|
Namespace containing implementation details. Should not directly be used by users.