1 #include <gsl/gsl_test.h>
2 #include <gsl/gsl_ieee_utils.h>
3 #include <gsl/gsl_math.h>
4 #include <gsl/gsl_cblas.h>
12 float X[] = { -0.388f };
16 k = cblas_isamax(N, X, incX);
17 gsl_test_int(k, expected, "samax(case 52)");
23 double X[] = { 0.247 };
27 k = cblas_idamax(N, X, incX);
28 gsl_test_int(k, expected, "damax(case 53)");
34 float X[] = { 0.704f, 0.665f };
38 k = cblas_icamax(N, X, incX);
39 gsl_test_int(k, expected, "camax(case 54)");
45 double X[] = { -0.599, -0.758 };
49 k = cblas_izamax(N, X, incX);
50 gsl_test_int(k, expected, "zamax(case 55)");
56 float X[] = { 0.909f, 0.037f };
60 k = cblas_isamax(N, X, incX);
61 gsl_test_int(k, expected, "samax(case 56)");
67 double X[] = { 0.271, -0.426 };
71 k = cblas_idamax(N, X, incX);
72 gsl_test_int(k, expected, "damax(case 57)");
78 float X[] = { -0.648f, 0.317f, 0.62f, 0.392f };
82 k = cblas_icamax(N, X, incX);
83 gsl_test_int(k, expected, "camax(case 58)");
89 double X[] = { -0.789, 0.352, 0.562, 0.697 };
93 k = cblas_izamax(N, X, incX);
94 gsl_test_int(k, expected, "zamax(case 59)");
100 float X[] = { 0.487f, 0.918f };
104 k = cblas_isamax(N, X, incX);
105 gsl_test_int(k, expected, "samax(case 60)");
111 double X[] = { 0.537, 0.826 };
115 k = cblas_idamax(N, X, incX);
116 gsl_test_int(k, expected, "damax(case 61)");
122 float X[] = { 0.993f, 0.172f, -0.825f, 0.873f };
126 k = cblas_icamax(N, X, incX);
127 gsl_test_int(k, expected, "camax(case 62)");
133 double X[] = { 0.913, -0.436, -0.134, 0.129 };
137 k = cblas_izamax(N, X, incX);
138 gsl_test_int(k, expected, "zamax(case 63)");