countEntriesAbove function (DATATYPE * Array, int sz, float includeAbove)
function which picks all the non-zero (or all above includeAbove) values to create sparse connectivity.
We want includeAbove to be slightly higher than zero for floating type errors and divergence problems with zero values in our learning synapse model. The problem is that this value is defined as a float, and when the dense array uses double precision, we are mixing floating types. In the older versions, it uses a pre-defined value (asGoodAsZero) which is a float and its value was set in global.h. In the code-generated version, this value is set to the minimum of float or double according to precision, and when double precision is used it complains about the number not fitting in the defined float type.
I pushed a workaround which sets asGoodAsZero to double instead of float, and modified countEntriesAbove to use double as well. But it is still a bit messy.