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>
10 const double flteps = 1e-4, dbleps = 1e-6;
17 float A[] = { -0.291f };
18 float X[] = { 0.845f };
20 float A_expected[] = { -0.219597f };
21 cblas_ssyr(order, uplo, N, alpha, X, incX, A, lda);
24 for (i = 0; i < 1; i++) {
25 gsl_test_rel(A[i], A_expected[i], flteps, "ssyr(case 1402)");
37 float A[] = { -0.291f };
38 float X[] = { 0.845f };
40 float A_expected[] = { -0.219597f };
41 cblas_ssyr(order, uplo, N, alpha, X, incX, A, lda);
44 for (i = 0; i < 1; i++) {
45 gsl_test_rel(A[i], A_expected[i], flteps, "ssyr(case 1403)");
57 float A[] = { -0.291f };
58 float X[] = { 0.845f };
60 float A_expected[] = { -0.219597f };
61 cblas_ssyr(order, uplo, N, alpha, X, incX, A, lda);
64 for (i = 0; i < 1; i++) {
65 gsl_test_rel(A[i], A_expected[i], flteps, "ssyr(case 1404)");
77 float A[] = { -0.291f };
78 float X[] = { 0.845f };
80 float A_expected[] = { -0.219597f };
81 cblas_ssyr(order, uplo, N, alpha, X, incX, A, lda);
84 for (i = 0; i < 1; i++) {
85 gsl_test_rel(A[i], A_expected[i], flteps, "ssyr(case 1405)");
97 double A[] = { -0.65 };
98 double X[] = { -0.891 };
100 double A_expected[] = { -0.8881643 };
101 cblas_dsyr(order, uplo, N, alpha, X, incX, A, lda);
104 for (i = 0; i < 1; i++) {
105 gsl_test_rel(A[i], A_expected[i], dbleps, "dsyr(case 1406)");
117 double A[] = { -0.65 };
118 double X[] = { -0.891 };
120 double A_expected[] = { -0.8881643 };
121 cblas_dsyr(order, uplo, N, alpha, X, incX, A, lda);
124 for (i = 0; i < 1; i++) {
125 gsl_test_rel(A[i], A_expected[i], dbleps, "dsyr(case 1407)");
137 double A[] = { -0.65 };
138 double X[] = { -0.891 };
140 double A_expected[] = { -0.8881643 };
141 cblas_dsyr(order, uplo, N, alpha, X, incX, A, lda);
144 for (i = 0; i < 1; i++) {
145 gsl_test_rel(A[i], A_expected[i], dbleps, "dsyr(case 1408)");
157 double A[] = { -0.65 };
158 double X[] = { -0.891 };
160 double A_expected[] = { -0.8881643 };
161 cblas_dsyr(order, uplo, N, alpha, X, incX, A, lda);
164 for (i = 0; i < 1; i++) {
165 gsl_test_rel(A[i], A_expected[i], dbleps, "dsyr(case 1409)");