types.h 517 B

12345678910111213141516171819202122232425262728
  1. #ifndef _TYPES_H_
  2. #define _TYPES_H_
  3. typedef unsigned long long pyWord;
  4. typedef double pyReal;
  5. typedef struct s_MaxHeap {
  6. pyReal * distances;
  7. pyWord * indices;
  8. pyWord maxItems;
  9. pyWord size;
  10. } MaxHeap;
  11. typedef struct s_NbhHeaps {
  12. MaxHeap * heaps;
  13. pyReal * distances;
  14. } NbhHeaps;
  15. typedef struct s_SearchParams {
  16. const pyWord nbhSize;
  17. const pyWord nPoints;
  18. const pyWord nFeatures;
  19. const pyReal * data;
  20. pyWord * neighborhoods;
  21. NbhHeaps nbhHeaps;
  22. } SearchParams;
  23. #endif