You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NEWS.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
## ClusterR 1.3.6
3
3
4
4
* The `Optimal_Clusters_GMM` function was updated (https://github.com/mlampros/ClusterR/pull/70)
5
+
* Fixed an `affinity_propagation` warning (`/inst/include/affinity_propagation.h: warning: overflow in conversion from 'double' to 'long long unsigned int' changes value from '+QNaN' to '0' [-Woverflow]`) in lines 360 and 448 of the `affinity_propagation.h` file
int tmpdpsim = 0; // initialize 'tmpdpsim' to 0 . By setting this to 'arma::datum::nan' it gives "runtime error: nan is outside the range of representable values of type 'int'" ( clang-UBSAN )
270
270
int tmpnetsim,tmpexpref;
271
-
arma::uvec tmpidx;
271
+
arma::vec tmpidx;
272
272
bool unconverged = true; // unconverged set initially to 'true' [ see line 478 ]
arma::uvec notI = matlab_setdiff(arma::regspace<arma::uvec>( 0, 1, N-1 ), I); // converted 'N' to 'N-1' due to dif in indexing compared to matlab && I didn't use reshape() compared to initial code
424
424
c = arma::index_max(S.cols(I), 1);
425
425
c(I) = arma::regspace<arma::uvec>( 0, 1, K-1 ); // Identify clusters [ converted 'K' to 'K-1' due to dif in indexing compared to matlab ]
tmpidx.fill(arma::datum::nan); // 'tmpidx' can take 'arma::datum::nan' because it is initialized as 'arma::uvec' ( of type double )
449
+
tmpidx.fill(arma::datum::nan); // 'tmpidx' can take 'arma::datum::nan' because it is a vector of type double
449
450
tmpnetsim = 0; // initialize this to 0. By setting it to 'arma::datum::nan' it gives "runtime error: nan is outside the range of representable values of type 'int'" ( clang-UBSAN )
0 commit comments