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.381f, 0.53f, 0.451f };
18 float X[] = { 0.144f, 0.032f };
20 float x_expected[] = { 0.31929f, 0.360168f };
21 cblas_stpsv(order, uplo, trans, diag, N, A, X, incX);
24 for (i = 0; i < 2; i++) {
25 gsl_test_rel(X[i], x_expected[i], flteps, "stpsv(case 1310)");
37 float A[] = { -0.381f, 0.53f, 0.451f };
38 float X[] = { 0.144f, 0.032f };
40 float x_expected[] = { 0.144f, -0.04432f };
41 cblas_stpsv(order, uplo, trans, diag, N, A, X, incX);
44 for (i = 0; i < 2; i++) {
45 gsl_test_rel(X[i], x_expected[i], flteps, "stpsv(case 1311)");
57 float A[] = { -0.381f, 0.53f, 0.451f };
58 float X[] = { 0.144f, 0.032f };
60 float x_expected[] = { 0.417992f, -0.0839895f };
61 cblas_stpsv(order, uplo, trans, diag, N, A, X, incX);
64 for (i = 0; i < 2; i++) {
65 gsl_test_rel(X[i], x_expected[i], flteps, "stpsv(case 1312)");
77 float A[] = { -0.381f, 0.53f, 0.451f };
78 float X[] = { 0.144f, 0.032f };
80 float x_expected[] = { 0.12704f, 0.032f };
81 cblas_stpsv(order, uplo, trans, diag, N, A, X, incX);
84 for (i = 0; i < 2; i++) {
85 gsl_test_rel(X[i], x_expected[i], flteps, "stpsv(case 1313)");
97 float A[] = { -0.381f, 0.53f, 0.451f };
98 float X[] = { 0.144f, 0.032f };
100 float x_expected[] = { 0.31929f, 0.360168f };
101 cblas_stpsv(order, uplo, trans, diag, N, A, X, incX);
104 for (i = 0; i < 2; i++) {
105 gsl_test_rel(X[i], x_expected[i], flteps, "stpsv(case 1314)");
117 float A[] = { -0.381f, 0.53f, 0.451f };
118 float X[] = { 0.144f, 0.032f };
120 float x_expected[] = { 0.144f, -0.04432f };
121 cblas_stpsv(order, uplo, trans, diag, N, A, X, incX);
124 for (i = 0; i < 2; i++) {
125 gsl_test_rel(X[i], x_expected[i], flteps, "stpsv(case 1315)");
137 float A[] = { -0.381f, 0.53f, 0.451f };
138 float X[] = { 0.144f, 0.032f };
140 float x_expected[] = { 0.417992f, -0.0839895f };
141 cblas_stpsv(order, uplo, trans, diag, N, A, X, incX);
144 for (i = 0; i < 2; i++) {
145 gsl_test_rel(X[i], x_expected[i], flteps, "stpsv(case 1316)");
157 float A[] = { -0.381f, 0.53f, 0.451f };
158 float X[] = { 0.144f, 0.032f };
160 float x_expected[] = { 0.12704f, 0.032f };
161 cblas_stpsv(order, uplo, trans, diag, N, A, X, incX);
164 for (i = 0; i < 2; i++) {
165 gsl_test_rel(X[i], x_expected[i], flteps, "stpsv(case 1317)");
177 float A[] = { -0.381f, 0.53f, 0.451f };
178 float X[] = { 0.144f, 0.032f };
180 float x_expected[] = { 0.417992f, -0.0839895f };
181 cblas_stpsv(order, uplo, trans, diag, N, A, X, incX);
184 for (i = 0; i < 2; i++) {
185 gsl_test_rel(X[i], x_expected[i], flteps, "stpsv(case 1318)");
197 float A[] = { -0.381f, 0.53f, 0.451f };
198 float X[] = { 0.144f, 0.032f };
200 float x_expected[] = { 0.12704f, 0.032f };
201 cblas_stpsv(order, uplo, trans, diag, N, A, X, incX);
204 for (i = 0; i < 2; i++) {
205 gsl_test_rel(X[i], x_expected[i], flteps, "stpsv(case 1319)");
217 float A[] = { -0.381f, 0.53f, 0.451f };
218 float X[] = { 0.144f, 0.032f };
220 float x_expected[] = { 0.31929f, 0.360168f };
221 cblas_stpsv(order, uplo, trans, diag, N, A, X, incX);
224 for (i = 0; i < 2; i++) {
225 gsl_test_rel(X[i], x_expected[i], flteps, "stpsv(case 1320)");
237 float A[] = { -0.381f, 0.53f, 0.451f };
238 float X[] = { 0.144f, 0.032f };
240 float x_expected[] = { 0.144f, -0.04432f };
241 cblas_stpsv(order, uplo, trans, diag, N, A, X, incX);
244 for (i = 0; i < 2; i++) {
245 gsl_test_rel(X[i], x_expected[i], flteps, "stpsv(case 1321)");
257 float A[] = { -0.381f, 0.53f, 0.451f };
258 float X[] = { 0.144f, 0.032f };
260 float x_expected[] = { 0.417992f, -0.0839895f };
261 cblas_stpsv(order, uplo, trans, diag, N, A, X, incX);
264 for (i = 0; i < 2; i++) {
265 gsl_test_rel(X[i], x_expected[i], flteps, "stpsv(case 1322)");
277 float A[] = { -0.381f, 0.53f, 0.451f };
278 float X[] = { 0.144f, 0.032f };
280 float x_expected[] = { 0.12704f, 0.032f };
281 cblas_stpsv(order, uplo, trans, diag, N, A, X, incX);
284 for (i = 0; i < 2; i++) {
285 gsl_test_rel(X[i], x_expected[i], flteps, "stpsv(case 1323)");
297 float A[] = { -0.381f, 0.53f, 0.451f };
298 float X[] = { 0.144f, 0.032f };
300 float x_expected[] = { 0.31929f, 0.360168f };
301 cblas_stpsv(order, uplo, trans, diag, N, A, X, incX);
304 for (i = 0; i < 2; i++) {
305 gsl_test_rel(X[i], x_expected[i], flteps, "stpsv(case 1324)");
317 float A[] = { -0.381f, 0.53f, 0.451f };
318 float X[] = { 0.144f, 0.032f };
320 float x_expected[] = { 0.144f, -0.04432f };
321 cblas_stpsv(order, uplo, trans, diag, N, A, X, incX);
324 for (i = 0; i < 2; i++) {
325 gsl_test_rel(X[i], x_expected[i], flteps, "stpsv(case 1325)");
337 double A[] = { 0.355, -0.698, -0.42 };
338 double X[] = { -0.702, -0.661 };
340 double x_expected[] = { 1.67142857143, 1.42438631791 };
341 cblas_dtpsv(order, uplo, trans, diag, N, A, X, incX);
344 for (i = 0; i < 2; i++) {
345 gsl_test_rel(X[i], x_expected[i], dbleps, "dtpsv(case 1326)");
357 double A[] = { 0.355, -0.698, -0.42 };
358 double X[] = { -0.702, -0.661 };
360 double x_expected[] = { -0.702, -1.150996 };
361 cblas_dtpsv(order, uplo, trans, diag, N, A, X, incX);
364 for (i = 0; i < 2; i++) {
365 gsl_test_rel(X[i], x_expected[i], dbleps, "dtpsv(case 1327)");
377 double A[] = { 0.355, -0.698, -0.42 };
378 double X[] = { -0.702, -0.661 };
380 double x_expected[] = { 4.76584842388, -1.86197183099 };
381 cblas_dtpsv(order, uplo, trans, diag, N, A, X, incX);
384 for (i = 0; i < 2; i++) {
385 gsl_test_rel(X[i], x_expected[i], dbleps, "dtpsv(case 1328)");
397 double A[] = { 0.355, -0.698, -0.42 };
398 double X[] = { -0.702, -0.661 };
400 double x_expected[] = { -1.163378, -0.661 };
401 cblas_dtpsv(order, uplo, trans, diag, N, A, X, incX);
404 for (i = 0; i < 2; i++) {
405 gsl_test_rel(X[i], x_expected[i], dbleps, "dtpsv(case 1329)");
417 double A[] = { 0.355, -0.698, -0.42 };
418 double X[] = { -0.702, -0.661 };
420 double x_expected[] = { 1.67142857143, 1.42438631791 };
421 cblas_dtpsv(order, uplo, trans, diag, N, A, X, incX);
424 for (i = 0; i < 2; i++) {
425 gsl_test_rel(X[i], x_expected[i], dbleps, "dtpsv(case 1330)");
437 double A[] = { 0.355, -0.698, -0.42 };
438 double X[] = { -0.702, -0.661 };
440 double x_expected[] = { -0.702, -1.150996 };
441 cblas_dtpsv(order, uplo, trans, diag, N, A, X, incX);
444 for (i = 0; i < 2; i++) {
445 gsl_test_rel(X[i], x_expected[i], dbleps, "dtpsv(case 1331)");
457 double A[] = { 0.355, -0.698, -0.42 };
458 double X[] = { -0.702, -0.661 };
460 double x_expected[] = { 4.76584842388, -1.86197183099 };
461 cblas_dtpsv(order, uplo, trans, diag, N, A, X, incX);
464 for (i = 0; i < 2; i++) {
465 gsl_test_rel(X[i], x_expected[i], dbleps, "dtpsv(case 1332)");
477 double A[] = { 0.355, -0.698, -0.42 };
478 double X[] = { -0.702, -0.661 };
480 double x_expected[] = { -1.163378, -0.661 };
481 cblas_dtpsv(order, uplo, trans, diag, N, A, X, incX);
484 for (i = 0; i < 2; i++) {
485 gsl_test_rel(X[i], x_expected[i], dbleps, "dtpsv(case 1333)");
497 double A[] = { 0.355, -0.698, -0.42 };
498 double X[] = { -0.702, -0.661 };
500 double x_expected[] = { 4.76584842388, -1.86197183099 };
501 cblas_dtpsv(order, uplo, trans, diag, N, A, X, incX);
504 for (i = 0; i < 2; i++) {
505 gsl_test_rel(X[i], x_expected[i], dbleps, "dtpsv(case 1334)");
517 double A[] = { 0.355, -0.698, -0.42 };
518 double X[] = { -0.702, -0.661 };
520 double x_expected[] = { -1.163378, -0.661 };
521 cblas_dtpsv(order, uplo, trans, diag, N, A, X, incX);
524 for (i = 0; i < 2; i++) {
525 gsl_test_rel(X[i], x_expected[i], dbleps, "dtpsv(case 1335)");
537 double A[] = { 0.355, -0.698, -0.42 };
538 double X[] = { -0.702, -0.661 };
540 double x_expected[] = { 1.67142857143, 1.42438631791 };
541 cblas_dtpsv(order, uplo, trans, diag, N, A, X, incX);
544 for (i = 0; i < 2; i++) {
545 gsl_test_rel(X[i], x_expected[i], dbleps, "dtpsv(case 1336)");
557 double A[] = { 0.355, -0.698, -0.42 };
558 double X[] = { -0.702, -0.661 };
560 double x_expected[] = { -0.702, -1.150996 };
561 cblas_dtpsv(order, uplo, trans, diag, N, A, X, incX);
564 for (i = 0; i < 2; i++) {
565 gsl_test_rel(X[i], x_expected[i], dbleps, "dtpsv(case 1337)");
577 double A[] = { 0.355, -0.698, -0.42 };
578 double X[] = { -0.702, -0.661 };
580 double x_expected[] = { 4.76584842388, -1.86197183099 };
581 cblas_dtpsv(order, uplo, trans, diag, N, A, X, incX);
584 for (i = 0; i < 2; i++) {
585 gsl_test_rel(X[i], x_expected[i], dbleps, "dtpsv(case 1338)");
597 double A[] = { 0.355, -0.698, -0.42 };
598 double X[] = { -0.702, -0.661 };
600 double x_expected[] = { -1.163378, -0.661 };
601 cblas_dtpsv(order, uplo, trans, diag, N, A, X, incX);
604 for (i = 0; i < 2; i++) {
605 gsl_test_rel(X[i], x_expected[i], dbleps, "dtpsv(case 1339)");
617 double A[] = { 0.355, -0.698, -0.42 };
618 double X[] = { -0.702, -0.661 };
620 double x_expected[] = { 1.67142857143, 1.42438631791 };
621 cblas_dtpsv(order, uplo, trans, diag, N, A, X, incX);
624 for (i = 0; i < 2; i++) {
625 gsl_test_rel(X[i], x_expected[i], dbleps, "dtpsv(case 1340)");
637 double A[] = { 0.355, -0.698, -0.42 };
638 double X[] = { -0.702, -0.661 };
640 double x_expected[] = { -0.702, -1.150996 };
641 cblas_dtpsv(order, uplo, trans, diag, N, A, X, incX);
644 for (i = 0; i < 2; i++) {
645 gsl_test_rel(X[i], x_expected[i], dbleps, "dtpsv(case 1341)");
657 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
658 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
660 float x_expected[] = { -1.05533f, 0.0529057f, -3.93625f, 1.36003f };
661 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
664 for (i = 0; i < 2; i++) {
665 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1342) real");
666 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1342) imag");
678 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
679 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
681 float x_expected[] = { -0.133f, 0.998f, 0.818576f, 0.163438f };
682 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
685 for (i = 0; i < 2; i++) {
686 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1343) real");
687 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1343) imag");
699 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
700 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
702 float x_expected[] = { -2.48362f, 1.13085f, -1.67581f, -0.273264f };
703 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
706 for (i = 0; i < 2; i++) {
707 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1344) real");
708 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1344) imag");
720 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
721 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
723 float x_expected[] = { 0.431924f, 0.679112f, -0.072f, 0.642f };
724 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
727 for (i = 0; i < 2; i++) {
728 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1345) real");
729 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1345) imag");
741 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
742 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
744 float x_expected[] = { -1.05533f, 0.0529057f, -3.93625f, 1.36003f };
745 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
748 for (i = 0; i < 2; i++) {
749 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1346) real");
750 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1346) imag");
762 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
763 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
765 float x_expected[] = { -0.133f, 0.998f, 0.818576f, 0.163438f };
766 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
769 for (i = 0; i < 2; i++) {
770 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1347) real");
771 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1347) imag");
783 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
784 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
786 float x_expected[] = { -2.48362f, 1.13085f, -1.67581f, -0.273264f };
787 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
790 for (i = 0; i < 2; i++) {
791 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1348) real");
792 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1348) imag");
804 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
805 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
807 float x_expected[] = { 0.431924f, 0.679112f, -0.072f, 0.642f };
808 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
811 for (i = 0; i < 2; i++) {
812 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1349) real");
813 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1349) imag");
825 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
826 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
828 float x_expected[] = { -2.48362f, 1.13085f, -1.67581f, -0.273264f };
829 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
832 for (i = 0; i < 2; i++) {
833 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1350) real");
834 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1350) imag");
846 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
847 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
849 float x_expected[] = { 0.431924f, 0.679112f, -0.072f, 0.642f };
850 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
853 for (i = 0; i < 2; i++) {
854 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1351) real");
855 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1351) imag");
867 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
868 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
870 float x_expected[] = { -1.05533f, 0.0529057f, -3.93625f, 1.36003f };
871 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
874 for (i = 0; i < 2; i++) {
875 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1352) real");
876 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1352) imag");
888 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
889 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
891 float x_expected[] = { -0.133f, 0.998f, 0.818576f, 0.163438f };
892 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
895 for (i = 0; i < 2; i++) {
896 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1353) real");
897 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1353) imag");
909 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
910 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
912 float x_expected[] = { -2.48362f, 1.13085f, -1.67581f, -0.273264f };
913 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
916 for (i = 0; i < 2; i++) {
917 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1354) real");
918 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1354) imag");
930 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
931 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
933 float x_expected[] = { 0.431924f, 0.679112f, -0.072f, 0.642f };
934 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
937 for (i = 0; i < 2; i++) {
938 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1355) real");
939 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1355) imag");
951 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
952 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
954 float x_expected[] = { -1.05533f, 0.0529057f, -3.93625f, 1.36003f };
955 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
958 for (i = 0; i < 2; i++) {
959 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1356) real");
960 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1356) imag");
972 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
973 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
975 float x_expected[] = { -0.133f, 0.998f, 0.818576f, 0.163438f };
976 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
979 for (i = 0; i < 2; i++) {
980 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1357) real");
981 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1357) imag");
993 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
994 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
996 float x_expected[] = { 2.15867f, 1.69498f, 1.69471f, 0.104738f };
997 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
1000 for (i = 0; i < 2; i++) {
1001 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1358) real");
1002 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1358) imag");
1014 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
1015 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
1017 float x_expected[] = { -0.613252f, 0.561896f, -0.072f, 0.642f };
1018 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
1021 for (i = 0; i < 2; i++) {
1022 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1359) real");
1023 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1359) imag");
1035 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
1036 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
1038 float x_expected[] = { 1.00465f, 0.327432f, 3.44853f, 2.273f };
1039 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
1042 for (i = 0; i < 2; i++) {
1043 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1360) real");
1044 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1360) imag");
1056 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
1057 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
1059 float x_expected[] = { -0.133f, 0.998f, -0.806168f, -0.053086f };
1060 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
1063 for (i = 0; i < 2; i++) {
1064 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1361) real");
1065 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1361) imag");
1077 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
1078 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
1080 float x_expected[] = { 2.15867f, 1.69498f, 1.69471f, 0.104738f };
1081 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
1084 for (i = 0; i < 2; i++) {
1085 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1362) real");
1086 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1362) imag");
1098 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
1099 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
1101 float x_expected[] = { -0.613252f, 0.561896f, -0.072f, 0.642f };
1102 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
1105 for (i = 0; i < 2; i++) {
1106 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1363) real");
1107 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1363) imag");
1119 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
1120 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
1122 float x_expected[] = { 1.00465f, 0.327432f, 3.44853f, 2.273f };
1123 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
1126 for (i = 0; i < 2; i++) {
1127 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1364) real");
1128 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1364) imag");
1140 float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };
1141 float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };
1143 float x_expected[] = { -0.133f, 0.998f, -0.806168f, -0.053086f };
1144 cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);
1147 for (i = 0; i < 2; i++) {
1148 gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1365) real");
1149 gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1365) imag");
1161 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1162 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1164 double x_expected[] = { 0.430509772467, -0.0927067365535, -0.611144484555, 0.999982608216 };
1165 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1168 for (i = 0; i < 2; i++) {
1169 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1366) real");
1170 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1366) imag");
1182 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1183 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1185 double x_expected[] = { 0.344, -0.143, -0.795928, -0.523879 };
1186 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1189 for (i = 0; i < 2; i++) {
1190 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1367) real");
1191 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1367) imag");
1203 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1204 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1206 double x_expected[] = { 1.00136463678, -1.84591534629, -1.12140892769, 0.696784840869 };
1207 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1210 for (i = 0; i < 2; i++) {
1211 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1368) real");
1212 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1368) imag");
1224 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1225 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1227 double x_expected[] = { 1.707508, -0.042521, -0.668, -0.945 };
1228 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1231 for (i = 0; i < 2; i++) {
1232 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1369) real");
1233 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1369) imag");
1245 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1246 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1248 double x_expected[] = { 0.430509772467, -0.0927067365535, -0.611144484555, 0.999982608216 };
1249 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1252 for (i = 0; i < 2; i++) {
1253 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1370) real");
1254 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1370) imag");
1266 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1267 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1269 double x_expected[] = { 0.344, -0.143, -0.795928, -0.523879 };
1270 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1273 for (i = 0; i < 2; i++) {
1274 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1371) real");
1275 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1371) imag");
1287 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1288 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1290 double x_expected[] = { 1.00136463678, -1.84591534629, -1.12140892769, 0.696784840869 };
1291 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1294 for (i = 0; i < 2; i++) {
1295 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1372) real");
1296 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1372) imag");
1308 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1309 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1311 double x_expected[] = { 1.707508, -0.042521, -0.668, -0.945 };
1312 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1315 for (i = 0; i < 2; i++) {
1316 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1373) real");
1317 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1373) imag");
1329 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1330 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1332 double x_expected[] = { 1.00136463678, -1.84591534629, -1.12140892769, 0.696784840869 };
1333 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1336 for (i = 0; i < 2; i++) {
1337 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1374) real");
1338 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1374) imag");
1350 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1351 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1353 double x_expected[] = { 1.707508, -0.042521, -0.668, -0.945 };
1354 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1357 for (i = 0; i < 2; i++) {
1358 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1375) real");
1359 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1375) imag");
1371 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1372 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1374 double x_expected[] = { 0.430509772467, -0.0927067365535, -0.611144484555, 0.999982608216 };
1375 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1378 for (i = 0; i < 2; i++) {
1379 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1376) real");
1380 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1376) imag");
1392 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1393 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1395 double x_expected[] = { 0.344, -0.143, -0.795928, -0.523879 };
1396 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1399 for (i = 0; i < 2; i++) {
1400 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1377) real");
1401 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1377) imag");
1413 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1414 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1416 double x_expected[] = { 1.00136463678, -1.84591534629, -1.12140892769, 0.696784840869 };
1417 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1420 for (i = 0; i < 2; i++) {
1421 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1378) real");
1422 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1378) imag");
1434 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1435 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1437 double x_expected[] = { 1.707508, -0.042521, -0.668, -0.945 };
1438 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1441 for (i = 0; i < 2; i++) {
1442 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1379) real");
1443 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1379) imag");
1455 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1456 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1458 double x_expected[] = { 0.430509772467, -0.0927067365535, -0.611144484555, 0.999982608216 };
1459 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1462 for (i = 0; i < 2; i++) {
1463 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1380) real");
1464 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1380) imag");
1476 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1477 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1479 double x_expected[] = { 0.344, -0.143, -0.795928, -0.523879 };
1480 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1483 for (i = 0; i < 2; i++) {
1484 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1381) real");
1485 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1381) imag");
1497 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1498 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1500 double x_expected[] = { -1.47384781823, -0.286556198408, 1.03098932879, -0.824698794397 };
1501 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1504 for (i = 0; i < 2; i++) {
1505 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1382) real");
1506 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1382) imag");
1518 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1519 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1521 double x_expected[] = { -0.016172, 1.175911, -0.668, -0.945 };
1522 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1525 for (i = 0; i < 2; i++) {
1526 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1383) real");
1527 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1383) imag");
1539 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1540 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1542 double x_expected[] = { 0.369363905801, -0.239798891331, 1.1759505739, -1.40027235656 };
1543 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1546 for (i = 0; i < 2; i++) {
1547 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1384) real");
1548 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1384) imag");
1560 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1561 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1563 double x_expected[] = { 0.344, -0.143, -1.05676, -1.151335 };
1564 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1567 for (i = 0; i < 2; i++) {
1568 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1385) real");
1569 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1385) imag");
1581 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1582 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1584 double x_expected[] = { -1.47384781823, -0.286556198408, 1.03098932879, -0.824698794397 };
1585 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1588 for (i = 0; i < 2; i++) {
1589 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1386) real");
1590 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1386) imag");
1602 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1603 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1605 double x_expected[] = { -0.016172, 1.175911, -0.668, -0.945 };
1606 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1609 for (i = 0; i < 2; i++) {
1610 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1387) real");
1611 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1387) imag");
1623 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1624 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1626 double x_expected[] = { 0.369363905801, -0.239798891331, 1.1759505739, -1.40027235656 };
1627 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1630 for (i = 0; i < 2; i++) {
1631 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1388) real");
1632 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1388) imag");
1644 double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };
1645 double X[] = { 0.344, -0.143, -0.668, -0.945 };
1647 double x_expected[] = { 0.344, -0.143, -1.05676, -1.151335 };
1648 cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);
1651 for (i = 0; i < 2; i++) {
1652 gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1389) real");
1653 gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1389) imag");