math/affine.hpp
- View this file on GitHub
- Last update: 2025-09-28 21:36:02+09:00
- Include:
#include "math/affine.hpp"
Verified with
Code
#ifndef M1UNE_AFFINE_HPP
#define M1UNE_AFFINE_HPP 1
#include <utility>
namespace m1une {
template <typename T>
T affine(std::pair<T, T> f, T x) {
return f.first * x + f.second;
}
} // namespace m1une
#endif // M1UNE_AFFINE_HPP#line 1 "math/affine.hpp"
#include <utility>
namespace m1une {
template <typename T>
T affine(std::pair<T, T> f, T x) {
return f.first * x + f.second;
}
} // namespace m1une