1#ifndef __CCEX_CLUSTER_HASH_H_
2#define __CCEX_CLUSTER_HASH_H_
8#include "../zlib/uthash/src/uthash.h"
41void clusterizeHash(
Cluster* CCE,
int nspin,
int** spmap,
float** stmap);
45void makeHashClusterO1(
HashCluster** hashclusters,
int nspin);
46void makeHashClusterO2(
HashCluster** hashclusters,
int nspin,
int** spmap,
float** stmap);
47void makeHashClusterOn(
HashCluster** hashclusters,
int order,
int nspin,
int** spmap,
float** stmap,
int* nks);
49void freeHashCluster(
HashCluster** hashClusters,
int order);
51int addCluster(
HashCluster** hashClusters,
int order,
const char*
id,
int* spins,
float strength,
int count);
55int setMaxLengthStr(
int nSpin,
int order);
57void addSpin(
int** newcluster,
int* oldcluster,
int oldn,
int spin);
58void typeStr(
char** destination,
int* cluster,
int order,
int nSpin);
60int binarySearch(
int* arr,
int low,
int high,
int target);
62float minStrength(
float currentStrength,
float** strengthMap,
int* oldcluster,
int oldn,
int newspin);
63float addAllStrength(
float currentStrength,
float** strengthMap,
int* oldcluster,
int oldn,
int newspin);
66void printProperties(
Property* hashProperties);
68int* parseClusterIdToIntArray(
const char*
id,
int* count);
69int countDigits(
int number);
70int search2dArr(
int** arr,
int low,
int high,
int left,
int right,
int* target);
72void updateNk(
int** Nk,
int order,
HashCluster* hashClusters);
73void addSubClusters(
HashCluster** hashclusters,
int nspin,
float** stmap,
int n);
74void generateCombinations(
int* arr,
int*** data,
int* tempCombination,
int start,
int end,
int index,
int r,
int* nCombination);
75float addAllStrengthForAllSpins(
float** strengthMap,
int* cluster,
int order);
Definition cluster_hash.h:33
Definition cluster_hash.h:12