numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Definition of greatest_common_divisor function. More...
#include "num_collect/base/concepts/integral.h"
#include "num_collect/base/exception.h"
#include "num_collect/base/precondition.h"
#include "num_collect/logging/logging_macros.h"
Go to the source code of this file.
Namespaces | |
namespace | num_collect |
Namespace of num_collect source codes. | |
namespace | num_collect::util |
Namespace of utilities. | |
Functions | |
template<base::concepts::integral T> | |
constexpr auto | num_collect::util::greatest_common_divisor (T a, T b) -> T |
Calculate the greatest common divisor. | |
Definition of greatest_common_divisor function.
Definition in file greatest_common_divisor.h.