cuBNM 0.0.4__tar.gz → 0.0.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (401) hide show
  1. cubnm-0.0.6/MANIFEST.in +4 -0
  2. {cubnm-0.0.4 → cubnm-0.0.6}/PKG-INFO +43 -20
  3. {cubnm-0.0.4 → cubnm-0.0.6}/README.rst +35 -16
  4. {cubnm-0.0.4 → cubnm-0.0.6}/include/cubnm/bnm.cuh +7 -22
  5. cubnm-0.0.6/include/cubnm/cuda_to_hip.h +75 -0
  6. {cubnm-0.0.4 → cubnm-0.0.6}/include/cubnm/defines.h +3 -3
  7. {cubnm-0.0.4 → cubnm-0.0.6}/include/cubnm/fc.cuh +2 -1
  8. {cubnm-0.0.4 → cubnm-0.0.6}/include/cubnm/includes.cuh +14 -2
  9. {cubnm-0.0.4 → cubnm-0.0.6}/include/cubnm/models/base.hpp +61 -30
  10. {cubnm-0.0.4 → cubnm-0.0.6}/include/cubnm/models/boilerplate.hpp +11 -2
  11. {cubnm-0.0.4 → cubnm-0.0.6}/include/cubnm/models/bw.hpp +1 -1
  12. {cubnm-0.0.4 → cubnm-0.0.6}/include/cubnm/models/kuramoto.hpp +22 -22
  13. {cubnm-0.0.4 → cubnm-0.0.6}/include/cubnm/models/rww.hpp +26 -26
  14. {cubnm-0.0.4 → cubnm-0.0.6}/include/cubnm/models/rwwex.hpp +22 -22
  15. cubnm-0.0.6/include/cubnm/utils.cuh +29 -0
  16. {cubnm-0.0.4 → cubnm-0.0.6}/pyproject.toml +6 -4
  17. {cubnm-0.0.4 → cubnm-0.0.6}/setup.py +116 -70
  18. {cubnm-0.0.4 → cubnm-0.0.6}/src/cubnm/_setup_opts.py +2 -1
  19. {cubnm-0.0.4 → cubnm-0.0.6}/src/cubnm/_version.py +3 -3
  20. {cubnm-0.0.4 → cubnm-0.0.6}/src/cubnm/cli.py +55 -40
  21. cubnm-0.0.6/src/cubnm/cli_parser.py +286 -0
  22. cubnm-0.0.6/src/cubnm/data/micamics/bold/sub-HC001_ses-01_space-fsnative_atlas-aparc_desc-bold.npz +0 -0
  23. cubnm-0.0.6/src/cubnm/data/micamics/bold/sub-HC001_ses-01_space-fsnative_atlas-glasser360_desc-bold.npz +0 -0
  24. cubnm-0.0.6/src/cubnm/data/micamics/bold/sub-HC001_ses-01_space-fsnative_atlas-schaefer1000_desc-bold.npz +0 -0
  25. cubnm-0.0.6/src/cubnm/data/micamics/bold/sub-HC001_ses-01_space-fsnative_atlas-schaefer100_desc-bold.npz +0 -0
  26. cubnm-0.0.6/src/cubnm/data/micamics/bold/sub-HC001_ses-01_space-fsnative_atlas-schaefer200_desc-bold.npz +0 -0
  27. cubnm-0.0.6/src/cubnm/data/micamics/bold/sub-HC001_ses-01_space-fsnative_atlas-schaefer300_desc-bold.npz +0 -0
  28. cubnm-0.0.6/src/cubnm/data/micamics/bold/sub-HC001_ses-01_space-fsnative_atlas-schaefer400_desc-bold.npz +0 -0
  29. cubnm-0.0.6/src/cubnm/data/micamics/bold/sub-HC001_ses-01_space-fsnative_atlas-schaefer500_desc-bold.npz +0 -0
  30. cubnm-0.0.6/src/cubnm/data/micamics/bold/sub-HC001_ses-01_space-fsnative_atlas-schaefer600_desc-bold.npz +0 -0
  31. cubnm-0.0.6/src/cubnm/data/micamics/bold/sub-HC001_ses-01_space-fsnative_atlas-schaefer700_desc-bold.npz +0 -0
  32. cubnm-0.0.6/src/cubnm/data/micamics/bold/sub-HC001_ses-01_space-fsnative_atlas-schaefer800_desc-bold.npz +0 -0
  33. cubnm-0.0.6/src/cubnm/data/micamics/bold/sub-HC001_ses-01_space-fsnative_atlas-schaefer900_desc-bold.npz +0 -0
  34. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-aparc_desc-length.npz +0 -0
  35. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-aparc_norm-mean001_desc-strength.npz +0 -0
  36. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-glasser360_desc-length.npz +0 -0
  37. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-glasser360_norm-mean001_desc-strength.npz +0 -0
  38. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-schaefer1000_desc-length.npz +0 -0
  39. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-schaefer1000_norm-mean001_desc-strength.npz +0 -0
  40. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-schaefer100_desc-length.npz +0 -0
  41. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-schaefer100_norm-mean001_desc-strength.npz +0 -0
  42. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-schaefer200_desc-length.npz +0 -0
  43. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-schaefer200_norm-mean001_desc-strength.npz +0 -0
  44. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-schaefer300_desc-length.npz +0 -0
  45. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-schaefer300_norm-mean001_desc-strength.npz +0 -0
  46. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-schaefer400_desc-length.npz +0 -0
  47. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-schaefer400_norm-mean001_desc-strength.npz +0 -0
  48. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-schaefer500_desc-length.npz +0 -0
  49. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-schaefer500_norm-mean001_desc-strength.npz +0 -0
  50. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-schaefer600_desc-length.npz +0 -0
  51. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-schaefer600_norm-mean001_desc-strength.npz +0 -0
  52. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-schaefer700_desc-length.npz +0 -0
  53. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-schaefer700_norm-mean001_desc-strength.npz +0 -0
  54. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-schaefer800_desc-length.npz +0 -0
  55. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-schaefer800_norm-mean001_desc-strength.npz +0 -0
  56. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-schaefer900_desc-length.npz +0 -0
  57. cubnm-0.0.6/src/cubnm/data/micamics/sc/sub-HC001_ses-01_space-dwinative_atlas-schaefer900_norm-mean001_desc-strength.npz +0 -0
  58. cubnm-0.0.6/src/cubnm/data/parcellations/lut/lut_aparc_mics.csv +73 -0
  59. cubnm-0.0.6/src/cubnm/data/parcellations/lut/lut_glasser-360_mics.csv +363 -0
  60. cubnm-0.0.6/src/cubnm/data/parcellations/lut/lut_schaefer-1000_mics.csv +1003 -0
  61. cubnm-0.0.6/src/cubnm/data/parcellations/lut/lut_schaefer-100_mics.csv +103 -0
  62. cubnm-0.0.6/src/cubnm/data/parcellations/lut/lut_schaefer-200_mics.csv +203 -0
  63. cubnm-0.0.6/src/cubnm/data/parcellations/lut/lut_schaefer-300_mics.csv +303 -0
  64. cubnm-0.0.6/src/cubnm/data/parcellations/lut/lut_schaefer-400_mics.csv +403 -0
  65. cubnm-0.0.6/src/cubnm/data/parcellations/lut/lut_schaefer-500_mics.csv +503 -0
  66. cubnm-0.0.6/src/cubnm/data/parcellations/lut/lut_schaefer-600_mics.csv +603 -0
  67. cubnm-0.0.6/src/cubnm/data/parcellations/lut/lut_schaefer-700_mics.csv +703 -0
  68. cubnm-0.0.6/src/cubnm/data/parcellations/lut/lut_schaefer-800_mics.csv +803 -0
  69. cubnm-0.0.6/src/cubnm/data/parcellations/lut/lut_schaefer-900_mics.csv +903 -0
  70. cubnm-0.0.6/src/cubnm/data/parcellations/lut/lut_subcortical-cerebellum_mics.csv +49 -0
  71. cubnm-0.0.6/src/cubnm/datasets.py +338 -0
  72. {cubnm-0.0.4 → cubnm-0.0.6}/src/cubnm/optimize.py +568 -210
  73. {cubnm-0.0.4 → cubnm-0.0.6}/src/cubnm/sim.py +807 -232
  74. cubnm-0.0.6/src/cubnm/utils.py +499 -0
  75. {cubnm-0.0.4 → cubnm-0.0.6}/src/cubnm.egg-info/PKG-INFO +43 -20
  76. {cubnm-0.0.4 → cubnm-0.0.6}/src/cubnm.egg-info/SOURCES.txt +57 -21
  77. {cubnm-0.0.4 → cubnm-0.0.6}/src/cubnm.egg-info/requires.txt +6 -1
  78. {cubnm-0.0.4 → cubnm-0.0.6}/src/ext/bnm.cpp +129 -136
  79. {cubnm-0.0.4 → cubnm-0.0.6}/src/ext/bnm.cu +678 -602
  80. {cubnm-0.0.4 → cubnm-0.0.6}/src/ext/core.cpp +94 -53
  81. {cubnm-0.0.4 → cubnm-0.0.6}/src/ext/fc.cu +22 -8
  82. {cubnm-0.0.4 → cubnm-0.0.6}/src/ext/models/bw.cpp +2 -2
  83. {cubnm-0.0.4 → cubnm-0.0.6}/src/ext/models/kuramoto.cpp +2 -2
  84. {cubnm-0.0.4 → cubnm-0.0.6}/src/ext/models/rww.cpp +68 -71
  85. {cubnm-0.0.4 → cubnm-0.0.6}/src/ext/models/rww.cu +5 -5
  86. {cubnm-0.0.4 → cubnm-0.0.6}/src/ext/models/rww_fic.cpp +27 -16
  87. {cubnm-0.0.4 → cubnm-0.0.6}/src/ext/models/rwwex.cpp +2 -2
  88. {cubnm-0.0.4 → cubnm-0.0.6}/src/ext/utils.cpp +7 -7
  89. {cubnm-0.0.4 → cubnm-0.0.6}/src/ext/utils.cu +2 -15
  90. cubnm-0.0.4/MANIFEST.in +0 -3
  91. cubnm-0.0.4/include/cubnm/utils.cuh +0 -18
  92. cubnm-0.0.4/src/cubnm/cli_parser.py +0 -188
  93. cubnm-0.0.4/src/cubnm/data/ctx_parc-aparc_approach-median_mean001_desc-length.txt +0 -68
  94. cubnm-0.0.4/src/cubnm/data/ctx_parc-aparc_approach-median_mean001_desc-strength.txt +0 -68
  95. cubnm-0.0.4/src/cubnm/data/ctx_parc-schaefer-100_approach-median_mean001_desc-length.txt +0 -100
  96. cubnm-0.0.4/src/cubnm/data/ctx_parc-schaefer-100_approach-median_mean001_desc-strength.txt +0 -100
  97. cubnm-0.0.4/src/cubnm/data/ctx_parc-schaefer-100_hemi-LR_desc-FCDtril.txt +0 -13695
  98. cubnm-0.0.4/src/cubnm/data/ctx_parc-schaefer-100_hemi-LR_desc-FCtril.txt +0 -4950
  99. cubnm-0.0.4/src/cubnm/data/ctx_parc-schaefer-100_hemi-LR_exc-inter_desc-FCDtril.txt +0 -13695
  100. cubnm-0.0.4/src/cubnm/data/ctx_parc-schaefer-100_hemi-LR_exc-inter_desc-FCtril.txt +0 -2450
  101. cubnm-0.0.4/src/cubnm/data/ctx_parc-schaefer-200_approach-median_mean001_desc-length.txt +0 -200
  102. cubnm-0.0.4/src/cubnm/data/ctx_parc-schaefer-200_approach-median_mean001_desc-strength.txt +0 -200
  103. cubnm-0.0.4/src/cubnm/data/ctx_parc-schaefer-400_approach-median_mean001_desc-length.txt +0 -400
  104. cubnm-0.0.4/src/cubnm/data/ctx_parc-schaefer-400_approach-median_mean001_desc-strength.txt +0 -400
  105. cubnm-0.0.4/src/cubnm/data/ctx_parc-schaefer-600_approach-median_mean001_desc-length.txt +0 -600
  106. cubnm-0.0.4/src/cubnm/data/ctx_parc-schaefer-600_approach-median_mean001_desc-strength.txt +0 -600
  107. cubnm-0.0.4/src/cubnm/datasets.py +0 -143
  108. cubnm-0.0.4/src/cubnm/utils.py +0 -85
  109. {cubnm-0.0.4 → cubnm-0.0.6}/LICENSE +0 -0
  110. {cubnm-0.0.4 → cubnm-0.0.6}/include/cubnm/bnm.hpp +0 -0
  111. {cubnm-0.0.4 → cubnm-0.0.6}/include/cubnm/models/base.cuh +0 -0
  112. {cubnm-0.0.4 → cubnm-0.0.6}/include/cubnm/models/bw.cuh +0 -0
  113. {cubnm-0.0.4 → cubnm-0.0.6}/include/cubnm/models/kuramoto.cuh +0 -0
  114. {cubnm-0.0.4 → cubnm-0.0.6}/include/cubnm/models/rww.cuh +0 -0
  115. {cubnm-0.0.4 → cubnm-0.0.6}/include/cubnm/models/rww_fic.hpp +0 -0
  116. {cubnm-0.0.4 → cubnm-0.0.6}/include/cubnm/models/rwwex.cuh +0 -0
  117. {cubnm-0.0.4 → cubnm-0.0.6}/include/cubnm/utils.hpp +0 -0
  118. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_blas.h +0 -0
  119. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_blas_types.h +0 -0
  120. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_block.h +0 -0
  121. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_block_char.h +0 -0
  122. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_block_complex_double.h +0 -0
  123. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_block_complex_float.h +0 -0
  124. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_block_complex_long_double.h +0 -0
  125. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_block_double.h +0 -0
  126. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_block_float.h +0 -0
  127. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_block_int.h +0 -0
  128. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_block_long.h +0 -0
  129. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_block_long_double.h +0 -0
  130. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_block_short.h +0 -0
  131. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_block_uchar.h +0 -0
  132. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_block_uint.h +0 -0
  133. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_block_ulong.h +0 -0
  134. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_block_ushort.h +0 -0
  135. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_bspline.h +0 -0
  136. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_bst.h +0 -0
  137. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_bst_avl.h +0 -0
  138. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_bst_rb.h +0 -0
  139. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_bst_types.h +0 -0
  140. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_cblas.h +0 -0
  141. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_cdf.h +0 -0
  142. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_chebyshev.h +0 -0
  143. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_check_range.h +0 -0
  144. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_combination.h +0 -0
  145. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_complex.h +0 -0
  146. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_complex_math.h +0 -0
  147. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_const.h +0 -0
  148. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_const_cgs.h +0 -0
  149. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_const_cgsm.h +0 -0
  150. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_const_mks.h +0 -0
  151. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_const_mksa.h +0 -0
  152. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_const_num.h +0 -0
  153. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_deriv.h +0 -0
  154. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_dft_complex.h +0 -0
  155. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_dft_complex_float.h +0 -0
  156. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_dht.h +0 -0
  157. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_diff.h +0 -0
  158. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_eigen.h +0 -0
  159. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_errno.h +0 -0
  160. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_fft.h +0 -0
  161. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_fft_complex.h +0 -0
  162. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_fft_complex_float.h +0 -0
  163. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_fft_halfcomplex.h +0 -0
  164. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_fft_halfcomplex_float.h +0 -0
  165. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_fft_real.h +0 -0
  166. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_fft_real_float.h +0 -0
  167. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_filter.h +0 -0
  168. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_fit.h +0 -0
  169. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_heapsort.h +0 -0
  170. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_histogram.h +0 -0
  171. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_histogram2d.h +0 -0
  172. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_ieee_utils.h +0 -0
  173. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_inline.h +0 -0
  174. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_integration.h +0 -0
  175. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_interp.h +0 -0
  176. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_interp2d.h +0 -0
  177. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_linalg.h +0 -0
  178. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_machine.h +0 -0
  179. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_math.h +0 -0
  180. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_matrix.h +0 -0
  181. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_matrix_char.h +0 -0
  182. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_matrix_complex_double.h +0 -0
  183. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_matrix_complex_float.h +0 -0
  184. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_matrix_complex_long_double.h +0 -0
  185. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_matrix_double.h +0 -0
  186. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_matrix_float.h +0 -0
  187. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_matrix_int.h +0 -0
  188. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_matrix_long.h +0 -0
  189. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_matrix_long_double.h +0 -0
  190. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_matrix_short.h +0 -0
  191. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_matrix_uchar.h +0 -0
  192. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_matrix_uint.h +0 -0
  193. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_matrix_ulong.h +0 -0
  194. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_matrix_ushort.h +0 -0
  195. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_message.h +0 -0
  196. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_min.h +0 -0
  197. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_minmax.h +0 -0
  198. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_mode.h +0 -0
  199. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_monte.h +0 -0
  200. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_monte_miser.h +0 -0
  201. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_monte_plain.h +0 -0
  202. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_monte_vegas.h +0 -0
  203. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_movstat.h +0 -0
  204. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_multifit.h +0 -0
  205. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_multifit_nlin.h +0 -0
  206. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_multifit_nlinear.h +0 -0
  207. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_multilarge.h +0 -0
  208. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_multilarge_nlinear.h +0 -0
  209. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_multimin.h +0 -0
  210. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_multiroots.h +0 -0
  211. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_multiset.h +0 -0
  212. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_nan.h +0 -0
  213. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_ntuple.h +0 -0
  214. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_odeiv.h +0 -0
  215. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_odeiv2.h +0 -0
  216. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permutation.h +0 -0
  217. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute.h +0 -0
  218. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_char.h +0 -0
  219. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_complex_double.h +0 -0
  220. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_complex_float.h +0 -0
  221. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_complex_long_double.h +0 -0
  222. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_double.h +0 -0
  223. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_float.h +0 -0
  224. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_int.h +0 -0
  225. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_long.h +0 -0
  226. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_long_double.h +0 -0
  227. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_matrix.h +0 -0
  228. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_matrix_char.h +0 -0
  229. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_matrix_complex_double.h +0 -0
  230. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_matrix_complex_float.h +0 -0
  231. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_matrix_complex_long_double.h +0 -0
  232. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_matrix_double.h +0 -0
  233. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_matrix_float.h +0 -0
  234. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_matrix_int.h +0 -0
  235. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_matrix_long.h +0 -0
  236. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_matrix_long_double.h +0 -0
  237. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_matrix_short.h +0 -0
  238. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_matrix_uchar.h +0 -0
  239. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_matrix_uint.h +0 -0
  240. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_matrix_ulong.h +0 -0
  241. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_matrix_ushort.h +0 -0
  242. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_short.h +0 -0
  243. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_uchar.h +0 -0
  244. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_uint.h +0 -0
  245. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_ulong.h +0 -0
  246. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_ushort.h +0 -0
  247. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_vector.h +0 -0
  248. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_vector_char.h +0 -0
  249. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_vector_complex_double.h +0 -0
  250. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_vector_complex_float.h +0 -0
  251. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_vector_complex_long_double.h +0 -0
  252. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_vector_double.h +0 -0
  253. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_vector_float.h +0 -0
  254. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_vector_int.h +0 -0
  255. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_vector_long.h +0 -0
  256. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_vector_long_double.h +0 -0
  257. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_vector_short.h +0 -0
  258. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_vector_uchar.h +0 -0
  259. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_vector_uint.h +0 -0
  260. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_vector_ulong.h +0 -0
  261. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_permute_vector_ushort.h +0 -0
  262. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_poly.h +0 -0
  263. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_pow_int.h +0 -0
  264. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_precision.h +0 -0
  265. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_qrng.h +0 -0
  266. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_randist.h +0 -0
  267. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_rng.h +0 -0
  268. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_roots.h +0 -0
  269. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_rstat.h +0 -0
  270. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf.h +0 -0
  271. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_airy.h +0 -0
  272. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_bessel.h +0 -0
  273. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_clausen.h +0 -0
  274. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_coulomb.h +0 -0
  275. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_coupling.h +0 -0
  276. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_dawson.h +0 -0
  277. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_debye.h +0 -0
  278. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_dilog.h +0 -0
  279. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_elementary.h +0 -0
  280. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_ellint.h +0 -0
  281. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_elljac.h +0 -0
  282. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_erf.h +0 -0
  283. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_exp.h +0 -0
  284. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_expint.h +0 -0
  285. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_fermi_dirac.h +0 -0
  286. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_gamma.h +0 -0
  287. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_gegenbauer.h +0 -0
  288. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_hermite.h +0 -0
  289. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_hyperg.h +0 -0
  290. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_laguerre.h +0 -0
  291. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_lambert.h +0 -0
  292. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_legendre.h +0 -0
  293. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_log.h +0 -0
  294. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_mathieu.h +0 -0
  295. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_pow_int.h +0 -0
  296. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_psi.h +0 -0
  297. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_result.h +0 -0
  298. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_sincos_pi.h +0 -0
  299. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_synchrotron.h +0 -0
  300. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_transport.h +0 -0
  301. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_trig.h +0 -0
  302. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sf_zeta.h +0 -0
  303. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_siman.h +0 -0
  304. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort.h +0 -0
  305. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_char.h +0 -0
  306. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_double.h +0 -0
  307. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_float.h +0 -0
  308. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_int.h +0 -0
  309. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_long.h +0 -0
  310. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_long_double.h +0 -0
  311. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_short.h +0 -0
  312. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_uchar.h +0 -0
  313. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_uint.h +0 -0
  314. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_ulong.h +0 -0
  315. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_ushort.h +0 -0
  316. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_vector.h +0 -0
  317. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_vector_char.h +0 -0
  318. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_vector_double.h +0 -0
  319. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_vector_float.h +0 -0
  320. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_vector_int.h +0 -0
  321. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_vector_long.h +0 -0
  322. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_vector_long_double.h +0 -0
  323. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_vector_short.h +0 -0
  324. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_vector_uchar.h +0 -0
  325. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_vector_uint.h +0 -0
  326. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_vector_ulong.h +0 -0
  327. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sort_vector_ushort.h +0 -0
  328. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_spblas.h +0 -0
  329. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_specfunc.h +0 -0
  330. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_splinalg.h +0 -0
  331. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_spline.h +0 -0
  332. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_spline2d.h +0 -0
  333. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_spmatrix.h +0 -0
  334. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_spmatrix_char.h +0 -0
  335. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_spmatrix_complex_double.h +0 -0
  336. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_spmatrix_complex_float.h +0 -0
  337. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_spmatrix_complex_long_double.h +0 -0
  338. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_spmatrix_double.h +0 -0
  339. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_spmatrix_float.h +0 -0
  340. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_spmatrix_int.h +0 -0
  341. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_spmatrix_long.h +0 -0
  342. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_spmatrix_long_double.h +0 -0
  343. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_spmatrix_short.h +0 -0
  344. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_spmatrix_uchar.h +0 -0
  345. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_spmatrix_uint.h +0 -0
  346. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_spmatrix_ulong.h +0 -0
  347. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_spmatrix_ushort.h +0 -0
  348. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_statistics.h +0 -0
  349. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_statistics_char.h +0 -0
  350. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_statistics_double.h +0 -0
  351. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_statistics_float.h +0 -0
  352. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_statistics_int.h +0 -0
  353. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_statistics_long.h +0 -0
  354. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_statistics_long_double.h +0 -0
  355. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_statistics_short.h +0 -0
  356. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_statistics_uchar.h +0 -0
  357. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_statistics_uint.h +0 -0
  358. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_statistics_ulong.h +0 -0
  359. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_statistics_ushort.h +0 -0
  360. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sum.h +0 -0
  361. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_sys.h +0 -0
  362. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_test.h +0 -0
  363. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_types.h +0 -0
  364. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_vector.h +0 -0
  365. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_vector_char.h +0 -0
  366. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_vector_complex.h +0 -0
  367. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_vector_complex_double.h +0 -0
  368. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_vector_complex_float.h +0 -0
  369. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_vector_complex_long_double.h +0 -0
  370. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_vector_double.h +0 -0
  371. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_vector_float.h +0 -0
  372. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_vector_int.h +0 -0
  373. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_vector_long.h +0 -0
  374. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_vector_long_double.h +0 -0
  375. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_vector_short.h +0 -0
  376. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_vector_uchar.h +0 -0
  377. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_vector_uint.h +0 -0
  378. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_vector_ulong.h +0 -0
  379. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_vector_ushort.h +0 -0
  380. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_version.h +0 -0
  381. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_wavelet.h +0 -0
  382. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/gsl_wavelet2d.h +0 -0
  383. {cubnm-0.0.4 → cubnm-0.0.6}/include/gsl/test_source.c +0 -0
  384. {cubnm-0.0.4 → cubnm-0.0.6}/setup.cfg +0 -0
  385. {cubnm-0.0.4 → cubnm-0.0.6}/src/cubnm/__init__.py +0 -0
  386. {cubnm-0.0.4 → cubnm-0.0.6}/src/cubnm/_core.py +0 -0
  387. {cubnm-0.0.4/src/cubnm/data → cubnm-0.0.6/src/cubnm/data/maps}/ctx_parc-schaefer-100_desc-fcgradient01_zscore.txt +0 -0
  388. {cubnm-0.0.4/src/cubnm/data → cubnm-0.0.6/src/cubnm/data/maps}/ctx_parc-schaefer-100_desc-gabaa_zscore.txt +0 -0
  389. {cubnm-0.0.4/src/cubnm/data → cubnm-0.0.6/src/cubnm/data/maps}/ctx_parc-schaefer-100_desc-genepc1_zscore.txt +0 -0
  390. {cubnm-0.0.4/src/cubnm/data → cubnm-0.0.6/src/cubnm/data/maps}/ctx_parc-schaefer-100_desc-myelinmap_zscore.txt +0 -0
  391. {cubnm-0.0.4/src/cubnm/data → cubnm-0.0.6/src/cubnm/data/maps}/ctx_parc-schaefer-100_desc-nmda_zscore.txt +0 -0
  392. {cubnm-0.0.4/src/cubnm/data → cubnm-0.0.6/src/cubnm/data/maps}/ctx_parc-schaefer-100_desc-thickness_zscore.txt +0 -0
  393. {cubnm-0.0.4/src/cubnm/data → cubnm-0.0.6/src/cubnm/data/maps}/ctx_parc-schaefer-100_desc-yeo7.txt +0 -0
  394. {cubnm-0.0.4 → cubnm-0.0.6}/src/cubnm.egg-info/dependency_links.txt +0 -0
  395. {cubnm-0.0.4 → cubnm-0.0.6}/src/cubnm.egg-info/entry_points.txt +0 -0
  396. {cubnm-0.0.4 → cubnm-0.0.6}/src/cubnm.egg-info/top_level.txt +0 -0
  397. {cubnm-0.0.4 → cubnm-0.0.6}/src/ext/fc.cpp +0 -0
  398. {cubnm-0.0.4 → cubnm-0.0.6}/src/ext/models/base.cpp +0 -0
  399. {cubnm-0.0.4 → cubnm-0.0.6}/src/ext/models/bw.cu +0 -0
  400. {cubnm-0.0.4 → cubnm-0.0.6}/src/ext/models/kuramoto.cu +0 -0
  401. {cubnm-0.0.4 → cubnm-0.0.6}/src/ext/models/rwwex.cu +0 -0
@@ -0,0 +1,4 @@
1
+ recursive-include src/ext *
2
+ recursive-include include *
3
+ recursive-include src/cubnm/data *
4
+ prune **/.ipynb_checkpoints
@@ -1,7 +1,7 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: cubnm
3
- Version: 0.0.4
4
- Summary: A toolbox for biophysical network modeling on GPUs
3
+ Version: 0.0.6
4
+ Summary: A toolbox for brain network modeling on GPUs
5
5
  Author-email: Amin Saberi <amnsbr@gmail.com>
6
6
  License: BSD 3-Clause License
7
7
 
@@ -47,17 +47,26 @@ Requires-Python: >=3.7
47
47
  Description-Content-Type: text/x-rst
48
48
  License-File: LICENSE
49
49
  Requires-Dist: numpy<2,>=1.20
50
- Requires-Dist: GPUtil==1.4
51
50
  Requires-Dist: scipy
52
51
  Requires-Dist: pandas
53
52
  Requires-Dist: pymoo==0.6
54
53
  Requires-Dist: scikit-optimize==0.9
55
54
  Requires-Dist: tabulate
55
+ Provides-Extra: cupy-cuda11x
56
+ Requires-Dist: cupy-cuda11x; extra == "cupy-cuda11x"
57
+ Provides-Extra: cupy-cuda12x
58
+ Requires-Dist: cupy-cuda12x; extra == "cupy-cuda12x"
59
+ Dynamic: license-file
56
60
 
57
61
  .. image:: https://raw.githubusercontent.com/amnsbr/cubnm/main/docs/_static/logo_text.png
58
62
  :align: center
59
63
  :width: 350px
60
64
 
65
+ .. badges-start
66
+
67
+ .. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.12097797.svg
68
+ :target: https://zenodo.org/doi/10.5281/zenodo.12097797
69
+
61
70
  .. image:: https://img.shields.io/pypi/v/cubnm
62
71
  :target: https://pypi.org/project/cubnm/
63
72
 
@@ -73,24 +82,42 @@ Requires-Dist: tabulate
73
82
  .. image:: https://img.shields.io/github/license/amnsbr/cubnm
74
83
  :target: ./LICENSE
75
84
 
76
- cuBNM toolbox is designed for efficient biophysical network modeling of
77
- the brain on GPUs and CPUs.
85
+ .. badges-end
86
+
87
+ cuBNM toolbox is designed for efficient brain network modeling on GPUs.
88
+
89
+ .. overview-start
78
90
 
79
91
  Overview
80
92
  --------
81
- cuBNM toolbox simulates neuronal activity of network nodes (neural mass models)
82
- which are connected through the structural connectome using GPUs/CPUs.
93
+ cuBNM toolbox uses GPUs to efficiently run simulations of brain network models
94
+ consisting of nodes (neural mass models) which are connected through a connectome,
95
+ and fit them to empirical neuroimaging data through integrated optimization algorithms.
96
+
97
+ GPU parallelization enables massive scaling of the simulations into higher number of
98
+ simulations and nodes. Below you can see how computing time varies
99
+ as a funciton of number of simulations and nodes on GPUs versus CPUs. For example,
100
+ running 2^17 simulations (duration: 60s, nodes: 100) would take 15 days on a single
101
+ CPU core, but only 19 minutes on an A100 GPU:
102
+
103
+ .. image:: https://raw.githubusercontent.com/amnsbr/cubnm/main/docs/_static/scaling.png
104
+ :alt: Scaling plots
105
+
106
+ GPU usage is the primary focus of the toolbox but it also supports running the
107
+ simulations on single or multiple cores of CPU. CPUs will be used if no GPUs are
108
+ detected or if requested by the user.
109
+
83
110
  Currently three models (`rWW`, `rWWEx` and `Kuramoto`) are implemented, but the
84
- modular design of the code makes it possible to include additional models in
85
- future. The simulated activity of model neurons is fed into the Balloon-Windkessel
86
- model to calculate simulated BOLD signal. Functional connectivity (FC) and
87
- functional connectivity dynamics (FCD) from the simulated BOLD signal are
88
- calculated efficiently on GPUs/CPUs and compared to FC and FCD matrices
89
- derived from empirical BOLD signals to assess similarity (goodness-of-fit)
90
- of the simulated to empirical BOLD signal.
111
+ modular design of the code makes it possible to add new models, and a guide
112
+ is included on how to contribute new models.
91
113
 
114
+ The simulated activity of model neurons is fed into the Balloon-Windkessel model
115
+ to calculate simulated BOLD signal. Functional connectivity (FC) and functional
116
+ connectivity dynamics (FCD) from the simulated BOLD signal are calculated efficiently
117
+ on GPUs/CPUs and compared to FC and FCD matrices derived from empirical BOLD signals
118
+ to assess similarity (goodness-of-fit) of the simulated to empirical BOLD signal.
92
119
  The toolbox supports parameter optimization algorithms including grid search and
93
- evolutionary optimizers (via `pymoo`), such as the covariance matrix adaptation-evolution
120
+ evolutionary optimizers (via ``pymoo``), such as the covariance matrix adaptation-evolution
94
121
  strategy (CMA-ES). Parallelization within the grid or the iterations of
95
122
  evolutionary optimization is done at the level of simulations (across the GPU
96
123
  ‘blocks’), and nodes (across each block’s ‘threads’). The models can incorporate
@@ -99,10 +126,6 @@ provided optimization algorithms. Regional parameters can be homogeneous or vary
99
126
  across nodes based on a parameterized combination of fixed maps or independent
100
127
  free parameters for each node or group of nodes.
101
128
 
102
- GPU usage is the primary focus of the toolbox but it also supports running the
103
- simulations on single or multiple cores of CPU. CPUs will be used if no GPUs are
104
- detected or if requested by the user.
105
-
106
129
  At its core the toolbox runs highly parallelized simulations using C++/CUDA, while the
107
130
  user interface is written in Python and allows for user control over simulation
108
131
  configurations:
@@ -2,6 +2,11 @@
2
2
  :align: center
3
3
  :width: 350px
4
4
 
5
+ .. badges-start
6
+
7
+ .. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.12097797.svg
8
+ :target: https://zenodo.org/doi/10.5281/zenodo.12097797
9
+
5
10
  .. image:: https://img.shields.io/pypi/v/cubnm
6
11
  :target: https://pypi.org/project/cubnm/
7
12
 
@@ -17,24 +22,42 @@
17
22
  .. image:: https://img.shields.io/github/license/amnsbr/cubnm
18
23
  :target: ./LICENSE
19
24
 
20
- cuBNM toolbox is designed for efficient biophysical network modeling of
21
- the brain on GPUs and CPUs.
25
+ .. badges-end
26
+
27
+ cuBNM toolbox is designed for efficient brain network modeling on GPUs.
28
+
29
+ .. overview-start
22
30
 
23
31
  Overview
24
32
  --------
25
- cuBNM toolbox simulates neuronal activity of network nodes (neural mass models)
26
- which are connected through the structural connectome using GPUs/CPUs.
33
+ cuBNM toolbox uses GPUs to efficiently run simulations of brain network models
34
+ consisting of nodes (neural mass models) which are connected through a connectome,
35
+ and fit them to empirical neuroimaging data through integrated optimization algorithms.
36
+
37
+ GPU parallelization enables massive scaling of the simulations into higher number of
38
+ simulations and nodes. Below you can see how computing time varies
39
+ as a funciton of number of simulations and nodes on GPUs versus CPUs. For example,
40
+ running 2^17 simulations (duration: 60s, nodes: 100) would take 15 days on a single
41
+ CPU core, but only 19 minutes on an A100 GPU:
42
+
43
+ .. image:: https://raw.githubusercontent.com/amnsbr/cubnm/main/docs/_static/scaling.png
44
+ :alt: Scaling plots
45
+
46
+ GPU usage is the primary focus of the toolbox but it also supports running the
47
+ simulations on single or multiple cores of CPU. CPUs will be used if no GPUs are
48
+ detected or if requested by the user.
49
+
27
50
  Currently three models (`rWW`, `rWWEx` and `Kuramoto`) are implemented, but the
28
- modular design of the code makes it possible to include additional models in
29
- future. The simulated activity of model neurons is fed into the Balloon-Windkessel
30
- model to calculate simulated BOLD signal. Functional connectivity (FC) and
31
- functional connectivity dynamics (FCD) from the simulated BOLD signal are
32
- calculated efficiently on GPUs/CPUs and compared to FC and FCD matrices
33
- derived from empirical BOLD signals to assess similarity (goodness-of-fit)
34
- of the simulated to empirical BOLD signal.
51
+ modular design of the code makes it possible to add new models, and a guide
52
+ is included on how to contribute new models.
35
53
 
54
+ The simulated activity of model neurons is fed into the Balloon-Windkessel model
55
+ to calculate simulated BOLD signal. Functional connectivity (FC) and functional
56
+ connectivity dynamics (FCD) from the simulated BOLD signal are calculated efficiently
57
+ on GPUs/CPUs and compared to FC and FCD matrices derived from empirical BOLD signals
58
+ to assess similarity (goodness-of-fit) of the simulated to empirical BOLD signal.
36
59
  The toolbox supports parameter optimization algorithms including grid search and
37
- evolutionary optimizers (via `pymoo`), such as the covariance matrix adaptation-evolution
60
+ evolutionary optimizers (via ``pymoo``), such as the covariance matrix adaptation-evolution
38
61
  strategy (CMA-ES). Parallelization within the grid or the iterations of
39
62
  evolutionary optimization is done at the level of simulations (across the GPU
40
63
  ‘blocks’), and nodes (across each block’s ‘threads’). The models can incorporate
@@ -43,10 +66,6 @@ provided optimization algorithms. Regional parameters can be homogeneous or vary
43
66
  across nodes based on a parameterized combination of fixed maps or independent
44
67
  free parameters for each node or group of nodes.
45
68
 
46
- GPU usage is the primary focus of the toolbox but it also supports running the
47
- simulations on single or multiple cores of CPU. CPUs will be used if no GPUs are
48
- detected or if requested by the user.
49
-
50
69
  At its core the toolbox runs highly parallelized simulations using C++/CUDA, while the
51
70
  user interface is written in Python and allows for user control over simulation
52
71
  configurations:
@@ -6,7 +6,8 @@ typedef void (*GlobalInputKernel)(
6
6
  u_real&, int&,
7
7
  const int&, const int&, const int&,
8
8
  const int&, int&, int&, u_real**,
9
- int**, const bool&, const int&,
9
+ u_real**, const bool&, const int&,
10
+ int&, const u_real&,
10
11
  u_real**, u_real*
11
12
  );
12
13
 
@@ -14,7 +15,8 @@ __device__ void global_input_cond(
14
15
  u_real& tmp_globalinput, int& k_buff_idx,
15
16
  const int& nodes, const int& sim_idx, const int& SC_idx,
16
17
  const int& j, int& k, int& buff_idx, u_real** SC,
17
- int** delay, const bool& has_delay, const int& max_delay,
18
+ u_real** SC_dist, const bool& has_delay, const int& max_delay,
19
+ int& curr_delay, const u_real& velocity,
18
20
  u_real** conn_state_var_hist, u_real* conn_state_var_1
19
21
  );
20
22
 
@@ -22,28 +24,11 @@ __device__ void global_input_osc(
22
24
  u_real& tmp_globalinput, int& k_buff_idx,
23
25
  const int& nodes, const int& sim_idx, const int& SC_idx,
24
26
  const int& j, int& k, int& buff_idx, u_real** SC,
25
- int** delay, const bool& has_delay, const int& max_delay,
27
+ u_real** SC_dist, const bool& has_delay, const int& max_delay,
28
+ int& curr_delay, const u_real& velocity,
26
29
  u_real** conn_state_var_hist, u_real* conn_state_var_1
27
30
  );
28
31
 
29
- template<typename Model>
30
- __global__ void bnm(
31
- Model* model,
32
- u_real **BOLD,
33
- u_real ***state_vars_out,
34
- int **global_out_int,
35
- bool **global_out_bool,
36
- int n_vols_remove,
37
- u_real *SC, u_real **global_params, u_real **regional_params,
38
- u_real **conn_state_var_hist, int **delay, int max_delay,
39
- int N_SIMS, int nodes, int BOLD_TR, int time_steps,
40
- u_real *noise,
41
- bool extended_output,
42
- #ifdef NOISE_SEGMENT
43
- int *shuffled_nodes, int *shuffled_ts,
44
- int noise_time_steps, int noise_repeats,
45
- #endif
46
- int corr_len
47
- );
32
+ cudaDeviceProp prop;
48
33
 
49
34
  #endif
@@ -0,0 +1,75 @@
1
+ /*
2
+ Copyright (c) 2023 Advanced Micro Devices, Inc. All rights reserved.
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in
12
+ all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
+ THE SOFTWARE.
21
+ */
22
+
23
+ #ifndef CUDA_TO_HIP_H
24
+ #define CUDA_TO_HIP_H
25
+
26
+ #define WARPSIZE 64
27
+ static constexpr int maxWarpsPerBlock = 1024/WARPSIZE;
28
+
29
+ #define cudaDeviceSynchronize hipDeviceSynchronize
30
+ #define cudaError hipError_t
31
+ #define cudaError_t hipError_t
32
+ #define cudaErrorInsufficientDriver hipErrorInsufficientDriver
33
+ #define cudaErrorNoDevice hipErrorNoDevice
34
+ #define cudaEvent_t hipEvent_t
35
+ #define cudaEventCreate hipEventCreate
36
+ #define cudaEventElapsedTime hipEventElapsedTime
37
+ #define cudaEventRecord hipEventRecord
38
+ #define cudaEventSynchronize hipEventSynchronize
39
+ #define cudaFree hipFree
40
+ #define cudaFreeHost hipHostFree
41
+ #define cudaGetDevice hipGetDevice
42
+ #define cudaGetDeviceCount hipGetDeviceCount
43
+ #define cudaGetErrorString hipGetErrorString
44
+ #define cudaGetLastError hipGetLastError
45
+ #define cudaHostAlloc hipHostMalloc
46
+ #define cudaHostAllocDefault hipHostMallocDefault
47
+ #define cudaMalloc hipMalloc
48
+ #define cudaMemcpy hipMemcpy
49
+ #define cudaMemcpyAsync hipMemcpyAsync
50
+ #define cudaMemcpyDeviceToHost hipMemcpyDeviceToHost
51
+ #define cudaMemcpyDeviceToDevice hipMemcpyDeviceToDevice
52
+ #define cudaMemcpyHostToDevice hipMemcpyHostToDevice
53
+ #define cudaMemGetInfo hipMemGetInfo
54
+ #define cudaMemset hipMemset
55
+ #define cudaReadModeElementType hipReadModeElementType
56
+ #define cudaSetDevice hipSetDevice
57
+ #define cudaSuccess hipSuccess
58
+ #define cudaDeviceProp hipDeviceProp_t
59
+ #define cudaGetDeviceProperties hipGetDeviceProperties
60
+ #define cudaThreadSynchronize hipDeviceSynchronize
61
+
62
+ // the above is from
63
+ // https://github.com/amd/HPCTrainingExamples/blob/5e3d001b2f2dbea1b0a62065c989526c602e42e6/hipifly/vector_add/src/cuda_to_hip.h
64
+ // additional defines for cubnm
65
+ #define cudaMallocManaged hipMallocManaged
66
+ #define cudaDeviceGetLimit hipDeviceGetLimit
67
+ #define cudaDeviceSetLimit hipDeviceSetLimit
68
+ #define cudaLimitMallocHeapSize hipLimitMallocHeapSize
69
+ #define cudaDeviceGetAttribute hipDeviceGetAttribute
70
+ #define cudaDevAttrCooperativeLaunch hipDeviceAttributeCooperativeLaunch // different name
71
+ #define cudaOccupancyMaxActiveBlocksPerMultiprocessor hipOccupancyMaxActiveBlocksPerMultiprocessor
72
+ #define cudaLaunchCooperativeKernel hipLaunchCooperativeKernel
73
+ #define cudaMemcpyToSymbol hipMemcpyToSymbol
74
+
75
+ #endif
@@ -39,17 +39,17 @@
39
39
  // "too many resources requested for launch"
40
40
  #endif
41
41
 
42
- #ifdef __CUDACC__
42
+ #if defined(__CUDACC__) || defined(__HIPCC__)
43
43
  #define CUDA_CALLABLE_MEMBER __device__
44
44
  #else
45
45
  #define CUDA_CALLABLE_MEMBER
46
46
  #endif
47
47
 
48
- #if defined(__CUDACC__) || defined(GPU_ENABLED)
48
+ #if defined(__CUDACC__) || defined(__HIPCC__) || defined(GPU_ENABLED)
49
49
  #define _GPU_ENABLED
50
50
  // this is used to determine if the GPU-related
51
51
  // declarations should be done, either if
52
- // nvcc is compiling the cuda source code
52
+ // nvcc/hipcc is compiling the cuda source code
53
53
  // or the C++ is being compiled but will be
54
54
  // linked with the nvcc compiled library
55
55
  // i.e., GPU_ENABLED is defined
@@ -1,7 +1,8 @@
1
1
  __global__ void bold_stats(
2
2
  u_real **mean_bold, u_real **ssd_bold,
3
3
  u_real **BOLD, int N_SIMS, int nodes,
4
- int bold_len, int corr_len, int n_vols_remove);
4
+ int bold_len, int corr_len, int n_vols_remove,
5
+ bool co_launch);
5
6
 
6
7
  __global__ void window_bold_stats(
7
8
  u_real **BOLD, int N_SIMS, int nodes,
@@ -11,8 +11,6 @@
11
11
  #include <cmath>
12
12
  #include <string>
13
13
  #include <cstdlib>
14
- #include <cuda_runtime.h>
15
- #include <cooperative_groups.h>
16
14
  #include <random>
17
15
  #include <algorithm>
18
16
  #include <map>
@@ -25,5 +23,19 @@
25
23
  #include <thread>
26
24
  #include <chrono>
27
25
  #include <iomanip>
26
+ #include <stdexcept>
27
+
28
+ #ifndef ENABLE_HIP
29
+ // compiling with nvcc for Nvidia GPUs
30
+ #include <cuda_runtime.h>
31
+ #include <cooperative_groups.h>
32
+ #else
33
+ // complinig with hipcc for AMD(/Nvidia) GPUs
34
+ #include <hip_runtime.h>
35
+ #include <hip_cooperative_groups.h>
36
+ #include "cuda_to_hip.h"
37
+ #endif
38
+
39
+ namespace cg = cooperative_groups;
28
40
 
29
41
  #endif
@@ -7,7 +7,8 @@ class BaseModel {
7
7
  public:
8
8
  BaseModel(
9
9
  int nodes, int N_SIMS, int N_SCs, int BOLD_TR, int states_sampling,
10
- int time_steps, bool do_delay, int window_size, int window_step, int rand_seed
10
+ int time_steps, bool do_delay, int rand_seed,
11
+ u_real dt, u_real bw_dt
11
12
  ) : nodes{nodes},
12
13
  N_SIMS{N_SIMS},
13
14
  N_SCs{N_SCs},
@@ -15,11 +16,12 @@ public:
15
16
  states_sampling{states_sampling},
16
17
  time_steps{time_steps},
17
18
  do_delay{do_delay},
18
- window_size{window_size},
19
- window_step{window_step},
20
- rand_seed{rand_seed}
19
+ rand_seed{rand_seed},
20
+ dt{dt}, // in msec
21
+ bw_dt{bw_dt / 1000.0} // input is in msec, but bw_dt is in seconds in the code
21
22
  {
22
23
  set_bold_states_len();
24
+ set_loop_iters();
23
25
  };
24
26
  // create virtual destructor and free
25
27
  // the memory allocated for the arrays
@@ -29,7 +31,8 @@ public:
29
31
 
30
32
  virtual void update(
31
33
  int nodes, int N_SIMS, int N_SCs, int BOLD_TR, int states_sampling,
32
- int time_steps, bool do_delay, int window_size, int window_step, int rand_seed
34
+ int time_steps, bool do_delay, int rand_seed,
35
+ u_real dt, u_real bw_dt
33
36
  ) {
34
37
  this->nodes = nodes;
35
38
  this->N_SIMS = N_SIMS;
@@ -38,10 +41,11 @@ public:
38
41
  this->states_sampling = states_sampling;
39
42
  this->time_steps = time_steps;
40
43
  this->do_delay = do_delay;
41
- this->window_size = window_size;
42
- this->window_step = window_step;
43
44
  this->rand_seed = rand_seed;
45
+ this->dt = dt; // msec
46
+ this->bw_dt = bw_dt / 1000.0; // input is in msec, but bw_dt is in seconds in the code
44
47
  this->set_bold_states_len();
48
+ this->set_loop_iters();
45
49
  }
46
50
 
47
51
  virtual void set_bold_states_len() {
@@ -49,27 +53,43 @@ public:
49
53
  // and total matrix size
50
54
  bold_len = time_steps / BOLD_TR;
51
55
  bold_size = bold_len * nodes;
56
+ BOLD_TR_iters = ((u_real)BOLD_TR / 1000.0) / bw_dt;
52
57
  // states samples length and
53
58
  // total matrix size
54
59
  states_len = time_steps / states_sampling;
55
60
  states_size = states_len * nodes;
61
+ states_sampling_iters = ((u_real)states_sampling / 1000.0) / bw_dt;
62
+ }
63
+
64
+ virtual void set_loop_iters() {
65
+ // TODO: add checks in Python to make sure they are divisible
66
+ bw_it = ((u_real)time_steps / 1000.0) / bw_dt;
67
+ inner_it = (bw_dt * 1000) / dt;
56
68
  }
57
69
 
58
70
  virtual void free_cpu();
71
+ virtual void free_cpu_noise();
59
72
 
60
- int nodes{}, N_SIMS{}, N_SCs{}, BOLD_TR{}, states_sampling{}, time_steps{},
61
- window_size{}, window_step{}, rand_seed{}, n_pairs{}, n_windows{},
62
- n_window_pairs{}, bold_len{}, bold_size{}, states_len{}, states_size{},
63
- n_vols_remove{}, n_states_samples_remove{}, corr_len{},
64
- noise_size{}, noise_repeats{},
73
+ int nodes{0}, N_SIMS{0}, N_SCs{0}, BOLD_TR{0}, states_sampling{0}, time_steps{0},
74
+ rand_seed{0}, n_pairs{0}, n_windows{0},
75
+ n_window_pairs{0}, bold_len{0}, bold_size{0}, states_len{0}, states_size{0},
76
+ n_vols_remove{0}, n_states_samples_remove{0}, corr_len{0},
77
+ noise_size{0}, noise_repeats{0}, max_delay{0},
65
78
  last_nodes{0}, last_time_steps{0}, last_rand_seed{0},
66
- last_noise_time_steps{0};
79
+ last_noise_time_steps{0},
80
+ bw_it{0}, inner_it{0}, BOLD_TR_iters{0}, states_sampling_iters{0},
81
+ alloc_N_SCs{0}, alloc_N_SIMS{0};
67
82
  // TODO: make some short or size_t
68
- bool cpu_initialized{false}, modifies_params{false}, do_delay{};
83
+ int *max_delays;
84
+ bool cpu_initialized{false}, cpu_noise_initialized{false}, modifies_params{false},
85
+ do_delay{false}, co_launch{false}, alloc_states_out{false}, alloc_fc{false},
86
+ alloc_fcd{false};
87
+ u_real dt{0.1}, bw_dt{0.001};
69
88
 
70
89
  #ifdef _GPU_ENABLED
71
90
  virtual void free_gpu();
72
- bool gpu_initialized{false};
91
+ virtual void free_gpu_noise();
92
+ bool gpu_initialized{false}, gpu_noise_initialized{false};
73
93
  #endif
74
94
 
75
95
  u_real ***states_out;
@@ -79,29 +99,32 @@ public:
79
99
  int *window_starts, *window_ends;
80
100
  #ifdef NOISE_SEGMENT
81
101
  int *shuffled_nodes, *shuffled_ts;
102
+ int noise_bw_it;
82
103
  #endif
83
104
  #ifdef _GPU_ENABLED
84
105
  u_real **BOLD, **mean_bold, **ssd_bold, **fc_trils, **windows_mean_bold, **windows_ssd_bold,
85
106
  **windows_fc_trils, **windows_mean_fc, **windows_ssd_fc, **fcd_trils,
86
- **d_SC, **d_global_params, **d_regional_params;
107
+ **d_SC, **d_SC_dist, **d_global_params, **d_regional_params, *d_v_list;
87
108
  double **d_fc_trils, **d_fcd_trils;
88
109
  int *pairs_i, *pairs_j, *window_pairs_i, *window_pairs_j, *d_SC_indices;
89
110
  #endif
90
111
 
91
112
  struct Config {
113
+ bool verbose{false}; // print simulation info + progress
114
+ bool do_fc{true};
115
+ bool do_fcd{true};
92
116
  int bold_remove_s{30};
93
117
  bool exc_interhemispheric{true};
118
+ int window_size{10};
119
+ int window_step{2};
94
120
  bool drop_edges{true};
95
- bool sync_msec{false};
96
121
  bool ext_out{true};
97
122
  bool states_ts{false};
98
- // set a default length of noise segment (msec)
99
- int noise_time_steps{30000};
100
- bool verbose{false}; // print simulation info + progress
101
- int progress_interval{500}; // msec; interval for updating progress
123
+ int noise_time_steps{30000}; // msec
124
+ int progress_interval{500}; // msec; real time interval for updating progress
102
125
  bool serial{false};
103
126
  };
104
-
127
+
105
128
  Config base_conf;
106
129
 
107
130
  void print_config() {
@@ -112,16 +135,18 @@ public:
112
135
  std::cout << "states_sampling: " << states_sampling << std::endl;
113
136
  std::cout << "time_steps: " << time_steps << std::endl;
114
137
  std::cout << "do_delay: " << do_delay << std::endl;
115
- std::cout << "window_size: " << window_size << std::endl;
116
- std::cout << "window_step: " << window_step << std::endl;
117
138
  std::cout << "rand_seed: " << rand_seed << std::endl;
118
139
  std::cout << "exc_interhemispheric: " << base_conf.exc_interhemispheric << std::endl;
119
- std::cout << "sync_msec: " << base_conf.sync_msec << std::endl;
120
140
  std::cout << "verbose: " << base_conf.verbose << std::endl;
121
141
  std::cout << "progress_interval: " << base_conf.progress_interval << std::endl;
122
142
  std::cout << "bold_remove_s: " << base_conf.bold_remove_s << std::endl;
123
143
  std::cout << "drop_edges: " << base_conf.drop_edges << std::endl;
144
+ std::cout << "ext_out: " << base_conf.ext_out << std::endl;
145
+ std::cout << "do_fc: " << base_conf.do_fc << std::endl;
146
+ std::cout << "do_fcd: " << base_conf.do_fcd << std::endl;
147
+ std::cout << "states_ts: " << base_conf.states_ts << std::endl;
124
148
  std::cout << "noise_time_steps: " << base_conf.noise_time_steps << std::endl;
149
+ std::cout << "serial: " << base_conf.serial << std::endl;
125
150
  }
126
151
 
127
152
  virtual void set_conf(std::map<std::string, std::string> config_map) {
@@ -250,14 +275,20 @@ protected:
250
275
  // Note: some of the base_conf members (ext_out, states_ts)
251
276
  // are set directly based on arguments passed from Python
252
277
  for (const auto& pair : config_map) {
253
- if (pair.first == "exc_interhemispheric") {
254
- this->base_conf.exc_interhemispheric = (bool)std::stoi(pair.second);
255
- } else if (pair.first == "sync_msec") {
256
- this->base_conf.sync_msec = (bool)std::stoi(pair.second);
257
- } else if (pair.first == "verbose") {
278
+ if (pair.first == "verbose") {
258
279
  this->base_conf.verbose = (bool)std::stoi(pair.second);
280
+ } else if (pair.first == "do_fc") {
281
+ this->base_conf.do_fc = (bool)std::stoi(pair.second);
282
+ } else if (pair.first == "do_fcd") {
283
+ this->base_conf.do_fcd = (bool)std::stoi(pair.second);
259
284
  } else if (pair.first == "bold_remove_s") {
260
285
  this->base_conf.bold_remove_s = std::stoi(pair.second);
286
+ } else if (pair.first == "exc_interhemispheric") {
287
+ this->base_conf.exc_interhemispheric = (bool)std::stoi(pair.second);
288
+ } else if (pair.first == "window_size") {
289
+ this->base_conf.window_size = std::stoi(pair.second);
290
+ } else if (pair.first == "window_step") {
291
+ this->base_conf.window_step = std::stoi(pair.second);
261
292
  } else if (pair.first == "drop_edges") {
262
293
  this->base_conf.drop_edges = (bool)std::stoi(pair.second);
263
294
  } else if (pair.first == "noise_time_steps") {
@@ -63,9 +63,15 @@ See rWWEx model as a simple example, and rWW as a more complex one.
63
63
  ~CLASS_NAME() { \
64
64
  if (cpu_initialized) { \
65
65
  this->free_cpu(); \
66
+ if (cpu_noise_initialized) { \
67
+ this->free_cpu_noise(); \
68
+ } \
66
69
  } \
67
70
  if (gpu_initialized) { \
68
71
  this->free_gpu(); \
72
+ if (gpu_noise_initialized) { \
73
+ this->free_gpu_noise(); \
74
+ } \
69
75
  } \
70
76
  } \
71
77
  static constexpr char* name = NAME; \
@@ -91,7 +97,7 @@ See rWWEx model as a simple example, and rWW as a more complex one.
91
97
  static constexpr bool is_osc = IS_OSC; \
92
98
  static Constants mc; \
93
99
  Config conf; \
94
- static void init_constants(); \
100
+ static void init_constants(u_real dt = 0.1); \
95
101
  CUDA_CALLABLE_MEMBER void init( \
96
102
  u_real* _state_vars, u_real* _intermediate_vars, \
97
103
  u_real* _global_params, u_real* _regional_params, \
@@ -191,6 +197,9 @@ See rWWEx model as a simple example, and rWW as a more complex one.
191
197
  ~CLASS_NAME() { \
192
198
  if (cpu_initialized) { \
193
199
  this->free_cpu(); \
200
+ if (cpu_noise_initialized) { \
201
+ this->free_cpu_noise(); \
202
+ } \
194
203
  } \
195
204
  } \
196
205
  static constexpr char* name = NAME; \
@@ -215,7 +224,7 @@ See rWWEx model as a simple example, and rWW as a more complex one.
215
224
  static constexpr bool has_post_integration = HAS_POST_INT; \
216
225
  static Constants mc; \
217
226
  Config conf; \
218
- static void init_constants(); \
227
+ static void init_constants(u_real dt = 0.1); \
219
228
  void h_init( \
220
229
  u_real* _state_vars, u_real* _intermediate_vars, \
221
230
  u_real* _global_params, u_real* _regional_params, \
@@ -20,5 +20,5 @@ struct BWConstants {
20
20
  u_real V_0_k3;
21
21
  };
22
22
 
23
- void init_bw_constants(BWConstants* bwc);
23
+ void init_bw_constants(BWConstants* bwc, u_real dt = 0.001);
24
24
  #endif
@@ -16,28 +16,28 @@ public:
16
16
  // second, use the boilerplate macro to include
17
17
  // the repetitive elements of the class definition
18
18
  DEFINE_DERIVED_MODEL(
19
- KuramotoModel,
20
- "Kuramoto",
21
- 1,
22
- 1,
23
- 1,
24
- 1,
25
- 3,
26
- 0,
27
- 0,
28
- false,
29
- false,
30
- true,
31
- 0,
32
- 0,
33
- 0,
34
- 0,
35
- 0,
36
- 0,
37
- 0,
38
- 0,
39
- 0,
40
- 0
19
+ KuramotoModel, // CLASS_NAME
20
+ "Kuramoto", // NAME
21
+ 1, // STATE_VARS
22
+ 1, // INTER_VARS
23
+ 1, // NOISE
24
+ 1, // GLOBAL_PARAMS
25
+ 3, // REGIONAL_PARAMS
26
+ 0, // CONN_STATE_VAR_IDX
27
+ 0, // BOLD_STATE_VAR_IDX
28
+ false, // HAS_POST_BW
29
+ false, // HAS_POST_INT
30
+ true, // IS_OSC
31
+ 0, // EXT_INT
32
+ 0, // EXT_BOOL
33
+ 0, // EXT_INT_SHARED
34
+ 0, // EXT_BOOL_SHARED
35
+ 0, // GLOBAL_OUT_INT
36
+ 0, // GLOBAL_OUT_BOOL
37
+ 0, // GLOBAL_OUT_UREAL
38
+ 0, // REGIONAL_OUT_INT
39
+ 0, // REGIONAL_OUT_BOOL
40
+ 0 // REGIONAL_OUT_UREAL
41
41
  )
42
42
 
43
43
  // additional functions that need to be overridden