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.
- {pyfmtools-5.2/src/pyfmtools.egg-info → pyfmtools-5.2.1}/PKG-INFO +1 -1
- {pyfmtools-5.2 → pyfmtools-5.2.1}/setup.py +1 -1
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/fmrandomsort.inc +2 -2
- {pyfmtools-5.2 → pyfmtools-5.2.1/src/pyfmtools.egg-info}/PKG-INFO +1 -1
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/wrapperpy.cpp +22 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/LICENSE.txt +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/MANIFEST.in +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/README.md +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/setup.cfg +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/binarylattice.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/buildPyfmtools.py +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/colamd.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/colamd.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/commonlib.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/commonlib.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/declare.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/fmrandom.cpp +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/fmrandom.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/fortify.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/fuzzymeasurefit.cpp +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/fuzzymeasurefit.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/fuzzymeasurefit3.cpp +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/fuzzymeasuretools.cpp +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/fuzzymeasuretools.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/gbrealloc.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/generaldefs.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/hbio.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/ini.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/ini.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/isfixedvar.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_BFP.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_BFP1.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_BFP2.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_Hash.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_Hash.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_LUSOL.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_LUSOL.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_MDO.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_MDO.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_MPS.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_MPS.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_SOS.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_SOS.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_crash.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_crash.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_etaPFI.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_explicit.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_fortify.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_lib.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_lib.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_matrix.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_matrix.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_mipbb.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_mipbb.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_params.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_presolve.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_presolve.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_price.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_price.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_pricePSE.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_pricePSE.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_report.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_report.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_rlp.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_scale.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_scale.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_simplex.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_simplex.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_types.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_utils.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_utils.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_wlp.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lp_wlp.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lpkit.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lpslink56.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lpsolve.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lusol.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lusol.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lusol1.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lusol2.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lusol6a.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lusol6l0.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lusol6u.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lusol7a.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lusol8a.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lusolio.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/lusolio.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/minimalsplus.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/mmio.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/mmio.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/myblas.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/myblas.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/pyfmtools.egg-info/SOURCES.txt +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/pyfmtools.egg-info/dependency_links.txt +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/pyfmtools.egg-info/requires.txt +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/pyfmtools.egg-info/top_level.txt +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/pyfmtools.py +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/sparselib.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/sparselib.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/stdafx.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/ufortify.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/wrapperpy.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/yacc_read.c +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/src/yacc_read.h +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/tests/test_no_wrapper.py +0 -0
- {pyfmtools-5.2 → pyfmtools-5.2.1}/tests/test_wrapper.py +0 -0
|
@@ -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;
|
|
@@ -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
|
|
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
|