pyfmtools 5.2__tar.gz → 5.2.1__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 (106) hide show
  1. {pyfmtools-5.2/src/pyfmtools.egg-info → pyfmtools-5.2.1}/PKG-INFO +1 -1
  2. {pyfmtools-5.2 → pyfmtools-5.2.1}/setup.py +1 -1
  3. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/fmrandomsort.inc +2 -2
  4. {pyfmtools-5.2 → pyfmtools-5.2.1/src/pyfmtools.egg-info}/PKG-INFO +1 -1
  5. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/wrapperpy.cpp +22 -0
  6. {pyfmtools-5.2 → pyfmtools-5.2.1}/LICENSE.txt +0 -0
  7. {pyfmtools-5.2 → pyfmtools-5.2.1}/MANIFEST.in +0 -0
  8. {pyfmtools-5.2 → pyfmtools-5.2.1}/README.md +0 -0
  9. {pyfmtools-5.2 → pyfmtools-5.2.1}/setup.cfg +0 -0
  10. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/binarylattice.h +0 -0
  11. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/buildPyfmtools.py +0 -0
  12. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/colamd.c +0 -0
  13. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/colamd.h +0 -0
  14. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/commonlib.c +0 -0
  15. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/commonlib.h +0 -0
  16. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/declare.h +0 -0
  17. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/fmrandom.cpp +0 -0
  18. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/fmrandom.h +0 -0
  19. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/fortify.h +0 -0
  20. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/fuzzymeasurefit.cpp +0 -0
  21. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/fuzzymeasurefit.h +0 -0
  22. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/fuzzymeasurefit3.cpp +0 -0
  23. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/fuzzymeasuretools.cpp +0 -0
  24. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/fuzzymeasuretools.h +0 -0
  25. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/gbrealloc.c +0 -0
  26. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/generaldefs.h +0 -0
  27. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/hbio.h +0 -0
  28. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/ini.c +0 -0
  29. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/ini.h +0 -0
  30. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/isfixedvar.c +0 -0
  31. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_BFP.h +0 -0
  32. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_BFP1.h +0 -0
  33. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_BFP2.h +0 -0
  34. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_Hash.c +0 -0
  35. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_Hash.h +0 -0
  36. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_LUSOL.c +0 -0
  37. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_LUSOL.h +0 -0
  38. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_MDO.c +0 -0
  39. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_MDO.h +0 -0
  40. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_MPS.c +0 -0
  41. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_MPS.h +0 -0
  42. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_SOS.c +0 -0
  43. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_SOS.h +0 -0
  44. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_crash.c +0 -0
  45. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_crash.h +0 -0
  46. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_etaPFI.h +0 -0
  47. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_explicit.h +0 -0
  48. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_fortify.h +0 -0
  49. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_lib.c +0 -0
  50. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_lib.h +0 -0
  51. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_matrix.c +0 -0
  52. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_matrix.h +0 -0
  53. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_mipbb.c +0 -0
  54. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_mipbb.h +0 -0
  55. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_params.c +0 -0
  56. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_presolve.c +0 -0
  57. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_presolve.h +0 -0
  58. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_price.c +0 -0
  59. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_price.h +0 -0
  60. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_pricePSE.c +0 -0
  61. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_pricePSE.h +0 -0
  62. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_report.c +0 -0
  63. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_report.h +0 -0
  64. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_rlp.h +0 -0
  65. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_scale.c +0 -0
  66. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_scale.h +0 -0
  67. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_simplex.c +0 -0
  68. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_simplex.h +0 -0
  69. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_types.h +0 -0
  70. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_utils.c +0 -0
  71. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_utils.h +0 -0
  72. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_wlp.c +0 -0
  73. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_wlp.h +0 -0
  74. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lpkit.h +0 -0
  75. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lpslink56.c +0 -0
  76. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lpsolve.h +0 -0
  77. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lusol.c +0 -0
  78. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lusol.h +0 -0
  79. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lusol1.h +0 -0
  80. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lusol2.h +0 -0
  81. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lusol6a.h +0 -0
  82. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lusol6l0.h +0 -0
  83. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lusol6u.h +0 -0
  84. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lusol7a.h +0 -0
  85. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lusol8a.h +0 -0
  86. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lusolio.c +0 -0
  87. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lusolio.h +0 -0
  88. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/minimalsplus.h +0 -0
  89. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/mmio.c +0 -0
  90. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/mmio.h +0 -0
  91. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/myblas.c +0 -0
  92. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/myblas.h +0 -0
  93. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/pyfmtools.egg-info/SOURCES.txt +0 -0
  94. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/pyfmtools.egg-info/dependency_links.txt +0 -0
  95. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/pyfmtools.egg-info/requires.txt +0 -0
  96. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/pyfmtools.egg-info/top_level.txt +0 -0
  97. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/pyfmtools.py +0 -0
  98. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/sparselib.c +0 -0
  99. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/sparselib.h +0 -0
  100. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/stdafx.h +0 -0
  101. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/ufortify.h +0 -0
  102. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/wrapperpy.h +0 -0
  103. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/yacc_read.c +0 -0
  104. {pyfmtools-5.2 → pyfmtools-5.2.1}/src/yacc_read.h +0 -0
  105. {pyfmtools-5.2 → pyfmtools-5.2.1}/tests/test_no_wrapper.py +0 -0
  106. {pyfmtools-5.2 → pyfmtools-5.2.1}/tests/test_wrapper.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyfmtools
3
- Version: 5.2
3
+ Version: 5.2.1
4
4
  Summary: Library for handling and fitting fuzzy measures
5
5
  Home-page:
6
6
  Author: Gleb Beliakov, Norbert Henseler
@@ -10,7 +10,7 @@ with open("README.md", "r") as fh:
10
10
 
11
11
  setup(
12
12
  name="pyfmtools",
13
- version="5.2",
13
+ version="5.2.1",
14
14
  description="Library for handling and fitting fuzzy measures",
15
15
  long_description=open('README.md').read(),
16
16
  long_description_content_type="text/markdown",
@@ -1229,11 +1229,11 @@ LIBDLL_API int generate_fm_belief(int_64 num, int n, int kadd, int_64* length,
1229
1229
 
1230
1230
  vector<double> v1(*length);
1231
1231
  for (int_64 k = 0; k < num; k++) {
1232
- GenerateBeliefMob(n, *length, v1); // in Mobius! with no 0
1232
+ GenerateBeliefMob(n, *length-1, v1); // in Mobius! with no 0
1233
1233
 
1234
1234
  vv[0+ (*length)*k] = 0;
1235
1235
 
1236
- for (int i = 0; i < *length; i++)
1236
+ for (int i = 0; i < *length-1; i++)
1237
1237
  vv[i + 1 + (*length) * k] = v1[i]; // last one?
1238
1238
  }
1239
1239
  return 1;
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyfmtools
3
- Version: 5.2
3
+ Version: 5.2.1
4
4
  Summary: Library for handling and fitting fuzzy measures
5
5
  Home-page:
6
6
  Author: Gleb Beliakov, Norbert Henseler
@@ -158,6 +158,11 @@ void releaseVectorWrapper( std::vector<T, std::allocator<T> > volatile &targetV
158
158
  #endif
159
159
 
160
160
  #else
161
+
162
+ #if ( _MSC_VER>1)
163
+ #include <crtversion.h>
164
+ #endif
165
+ #if (_VC_CRT_MAJOR_VERSION<13)
161
166
 
162
167
  template <class T>
163
168
  void wrapArrayInVector( T *sourceArray, size_t arraySize, std::vector<T, std::allocator<T> > volatile &targetVector ) {
@@ -173,6 +178,23 @@ void releaseVectorWrapper( std::vector<T, std::allocator<T> > volatile &targetV
173
178
  (typename std::_Vector_base<T, std::allocator<T> >::_Vector_impl *)((void *) &targetVector);
174
179
  vectorPtr->_M_start = vectorPtr->_M_finish = vectorPtr->_M_end_of_storage = NULL;
175
180
  }
181
+ #else
182
+ // just copy
183
+ template <class T>
184
+ void wrapArrayInVector( T *sourceArray, size_t arraySize, std::vector<T, std::allocator<T> > volatile &targetVector ) {
185
+ typename std::vector<T, std::allocator<T> > *vectorPtr =
186
+ (typename std::vector<T, std::allocator<T> > *)((void *) &targetVector);
187
+
188
+ vectorPtr->assign(sourceArray, sourceArray+ arraySize);
189
+ }
190
+ template <class T>
191
+ void releaseVectorWrapper( std::vector<T, std::allocator<T> > volatile &targetVector )
192
+ {
193
+ // do nothing
194
+ return ;
195
+ }
196
+ #endif
197
+
176
198
  #endif
177
199
 
178
200
  #endif
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes