1 /* { dg-options "-O2" } */
3 double test_vector (float **data
, int rows
, int cols
, int vqrows
,double epsilon
, int maxiter
,int **mean
, int *map
)
6 double sqerr
, prev_sqerr
=0, t
;
11 if ((sqerr
== 0.0) || (it
>= maxiter
-1) ||((it
> 0) && ( ((prev_sqerr
- sqerr
) / prev_sqerr
) < epsilon
)) )
12 for (i
= 0; i
< vqrows
; i
++)
14 for (j
= 0; j
< cols
; j
++)