compute.hpp 765 Bytes
Newer Older
1 2 3 4 5
#ifndef COMPUTE_H
#define COMPUTE_H

#include <vector>

Lars Kuehne's avatar
Lars Kuehne committed
6
#include <boost/align/aligned_allocator.hpp>
7

8 9 10 11 12
template <typename T>
using aligned_allocator = boost::alignment::aligned_allocator<T, 64>;
template <typename T>
using aligned_vector = std::vector<T, aligned_allocator<T>>;

Lars Kuehne's avatar
Lars Kuehne committed
13 14
float compute(float alpha, float beta, const aligned_vector<float>& seed_x,
              const aligned_vector<float>& seed_y, int num_iterations,
Lars Kuehne's avatar
Lars Kuehne committed
15
              float threshold);
16

Lars Kuehne's avatar
Lars Kuehne committed
17 18 19 20
void compute_all(int num_iterations, float threshold, float alphamin,
                 float alphamax, int alpha_num_intervals, float betamin,
                 float betamax, int beta_num_intervals, int num_seedpoints,
                 bool output_csv, std::vector<float> seedpoints);
21

Lars Kuehne's avatar
Lars Kuehne committed
22
#endif  // COMPUTE_H