#include <algorithm>
#include <array>
#include <memory>
#include <random>
#include <utility>
#include <vector>
#include "hebench/modules/general/include/hebench_math_utils.h"
#include "hebench/modules/general/include/nocopy.h"
#include "hebench/modules/logging/include/logging.h"
#include "hebench/api_bridge/types.h"
#include "benchmarks/datagen_helper/include/datagen_helper.h"
#include "include/hebench_benchmark_factory.h"
Go to the source code of this file.
|
template<typename T > |
std::enable_if< std::is_integral< T >::value||std::is_floating_point< T >::value, std::vector< std::pair< bool, std::uint64_t > > >::type | hebench::TestHarness::SimpleSetIntersection::almostEqualSet (const T *X, const T *Y, std::uint64_t n, std::uint64_t m, std::uint64_t k, double pct=0.05) |
| Finds whether values in two arrays are within a certain percentage of each other. More...
|
|
template<typename T > |
std::enable_if< std::is_integral< T >::value||std::is_floating_point< T >::value, bool >::type | hebench::TestHarness::SimpleSetIntersection::isMemberOf (const T *dataset, const T *value, std::size_t n, std::size_t k, double pct=0.05) |
| Finds whether values in two arrays are within a certain percentage of each other. More...
|
|
bool | hebench::TestHarness::SimpleSetIntersection::validateResult (IDataLoader::Ptr dataset, const std::uint64_t *param_data_pack_indices, const std::vector< hebench::APIBridge::NativeDataBuffer * > &p_outputs, std::uint64_t k_count, hebench::APIBridge::DataType data_type) |
|