mirror of
https://github.com/itzmeanjan/ml-kem.git
synced 2026-01-09 15:47:55 -05:00
7 lines
299 B
C++
7 lines
299 B
C++
#pragma once
|
|
#include <algorithm>
|
|
#include <vector>
|
|
|
|
constexpr auto compute_min = [](const std::vector<double>& v) -> double { return *std::min_element(v.begin(), v.end()); };
|
|
constexpr auto compute_max = [](const std::vector<double>& v) -> double { return *std::max_element(v.begin(), v.end()); };
|