Some useful functions. More...
#include <cmath>#include <string>#include <string_view>#include <sstream>#include <vector>#include <functional>

Go to the source code of this file.
Namespaces | |
| csl | |
| Namespace for csl library. | |
Functions | |
| template<class T > | |
| std::string | toString (T obj) |
| int | csl::PGCD (double a, double b) |
| Returns the PGCD of a and b. More... | |
| long long int | csl::PGCD (long long int a, long long int b) |
| Returns the PGCD of a and b. More... | |
| int | csl::PGCD (int a, int b) |
| int | csl::internal_PGCD (long long int a, long long int b) |
| Returns the PGCD of a and b. More... | |
| long long int | csl::sgn (long long int a) |
| Returns the sign of a. More... | |
| int | csl::sgn (int a) |
| int | csl::sgn (double a) |
| Returns the sign of a. More... | |
| double | csl::factorial (int n) |
| Returns the factorial of a. More... | |
| long long int | csl::internal_factorial (long long int n) |
| Returns the factorial of a. More... | |
| int | csl::compare (std::string_view a, std::string_view b) |
| bool | csl::operator> (const std::string &a, const std::string &b) |
| bool | csl::operator< (const std::string &a, const std::string &b) |
| bool | csl::operator>= (const std::string &a, const std::string &b) |
| bool | csl::operator<= (const std::string &a, const std::string &b) |
| std::vector< size_t > | csl::range (size_t n) |
| std::vector< size_t > | csl::range (size_t i, size_t n) |
| std::vector< size_t > | csl::range (size_t i, size_t n, size_t step) |
| template<typename T > | |
| bool | csl::comparePlaceIndependant (std::vector< T > A, std::vector< T > B) |
| Template function that compares the elements in two vectors A and B, independently on their order. More... | |
| template<typename T > | |
| bool | csl::partialComparePlaceIndependant (std::vector< T > A, std::vector< T > B) |
| Template function that compares the elements in two vectors A and B, independently on their order, A can be bigger, this function determines if all elements in B are present in A. More... | |
Some useful functions.
1.8.13