11#include "hptt_types.h"
15template<
typename floatType>
16static floatType conj(floatType x){
28template<
typename floatType>
29static double getZeroThreshold();
31double getZeroThreshold<double>() {
return 1e-16;}
33double getZeroThreshold<DoubleComplex>() {
return 1e-16;}
35double getZeroThreshold<float>() {
return 1e-6;}
37double getZeroThreshold<FloatComplex>() {
return 1e-6;}
39void trashCache(
double *A,
double *B,
int n);
42int hasItem(
const std::vector<t> &vec, t value)
44 return ( std::find(vec.begin(), vec.end(), value) != vec.end() );
48void printVector(
const std::vector<t> &vec,
const char* label){
49 std::cout << label <<
": ";
51 std::cout << a <<
", ";
56void printVector(
const std::list<t> &vec,
const char* label){
57 std::cout << label <<
": ";
59 std::cout << a <<
", ";
64void getPrimeFactors(
int n, std::list<int> &primeFactors );
67int findPos(t value,
const std::vector<t> &array)
69 for(
int i=0;i < array.size() ; ++i)
70 if( array[i] == value )
75int findPos(
int value,
const int *array,
int n);
79void accountForRowMajor(
const int *sizeA,
const int *outerSizeA,
const int *outerSizeB,
const int *perm,
80 int *tmpSizeA,
int *tmpOuterSizeA,
int *tmpouterSizeB,
int *tmpPerm,
const int dim,
const bool useRowMajor);
Definition: compute_node.h:3