29 lines
852 B
C++
29 lines
852 B
C++
#ifndef BENCHMARK_H
|
|
#define BENCHMARK_H
|
|
|
|
#include <vector>
|
|
using namespace std;
|
|
|
|
double benchmark_A(const vector<double> &x,
|
|
const vector<double> &y);
|
|
|
|
vector<double> benchmark_B(const vector<double> &A,
|
|
const vector<double> &x);
|
|
|
|
vector<double> benchmark_C(const vector<double> &A,
|
|
const vector<double> &B,
|
|
unsigned int M);
|
|
|
|
vector<double> benchmark_D(const vector<double> &coefficients,
|
|
const vector<double> &x);
|
|
|
|
|
|
double norm2(const vector<double>& x);
|
|
double scalar_kahan(const vector<double>& x, const vector<double>& y);
|
|
|
|
vector<double> matrixMultColumnWise(const vector<double> &A,
|
|
const vector<double> &B,
|
|
unsigned int M);
|
|
|
|
|
|
#endif
|