⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test_tpsv.c

📁 该文件为c++的数学函数库!是一个非常有用的编程工具.它含有各种数学函数,为科学计算、工程应用等程序编写提供方便!
💻 C
📖 第 1 页 / 共 3 页
字号:
   };  };  {   int order = 102;   int trans = 113;   int uplo = 122;   int diag = 131;   int N = 2;   float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };   float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };   int incX = -1;   float x_expected[] = { 1.00465f, 0.327432f, 3.44853f, 2.273f };   cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1364) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1364) imag");     };   };  };  {   int order = 102;   int trans = 113;   int uplo = 122;   int diag = 132;   int N = 2;   float A[] = { -0.019f, -0.38f, 0.588f, 0.814f, 0.173f, -0.937f };   float X[] = { -0.133f, 0.998f, -0.072f, 0.642f };   int incX = -1;   float x_expected[] = { -0.133f, 0.998f, -0.806168f, -0.053086f };   cblas_ctpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], flteps, "ctpsv(case 1365) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], flteps, "ctpsv(case 1365) imag");     };   };  };  {   int order = 101;   int trans = 111;   int uplo = 121;   int diag = 131;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { 0.430509772467, -0.0927067365535, -0.611144484555, 0.999982608216 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1366) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1366) imag");     };   };  };  {   int order = 101;   int trans = 111;   int uplo = 121;   int diag = 132;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { 0.344, -0.143, -0.795928, -0.523879 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1367) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1367) imag");     };   };  };  {   int order = 101;   int trans = 111;   int uplo = 122;   int diag = 131;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { 1.00136463678, -1.84591534629, -1.12140892769, 0.696784840869 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1368) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1368) imag");     };   };  };  {   int order = 101;   int trans = 111;   int uplo = 122;   int diag = 132;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { 1.707508, -0.042521, -0.668, -0.945 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1369) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1369) imag");     };   };  };  {   int order = 102;   int trans = 111;   int uplo = 121;   int diag = 131;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { 0.430509772467, -0.0927067365535, -0.611144484555, 0.999982608216 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1370) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1370) imag");     };   };  };  {   int order = 102;   int trans = 111;   int uplo = 121;   int diag = 132;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { 0.344, -0.143, -0.795928, -0.523879 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1371) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1371) imag");     };   };  };  {   int order = 102;   int trans = 111;   int uplo = 122;   int diag = 131;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { 1.00136463678, -1.84591534629, -1.12140892769, 0.696784840869 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1372) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1372) imag");     };   };  };  {   int order = 102;   int trans = 111;   int uplo = 122;   int diag = 132;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { 1.707508, -0.042521, -0.668, -0.945 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1373) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1373) imag");     };   };  };  {   int order = 101;   int trans = 112;   int uplo = 121;   int diag = 131;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { 1.00136463678, -1.84591534629, -1.12140892769, 0.696784840869 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1374) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1374) imag");     };   };  };  {   int order = 101;   int trans = 112;   int uplo = 121;   int diag = 132;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { 1.707508, -0.042521, -0.668, -0.945 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1375) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1375) imag");     };   };  };  {   int order = 101;   int trans = 112;   int uplo = 122;   int diag = 131;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { 0.430509772467, -0.0927067365535, -0.611144484555, 0.999982608216 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1376) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1376) imag");     };   };  };  {   int order = 101;   int trans = 112;   int uplo = 122;   int diag = 132;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { 0.344, -0.143, -0.795928, -0.523879 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1377) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1377) imag");     };   };  };  {   int order = 102;   int trans = 112;   int uplo = 121;   int diag = 131;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { 1.00136463678, -1.84591534629, -1.12140892769, 0.696784840869 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1378) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1378) imag");     };   };  };  {   int order = 102;   int trans = 112;   int uplo = 121;   int diag = 132;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { 1.707508, -0.042521, -0.668, -0.945 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1379) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1379) imag");     };   };  };  {   int order = 102;   int trans = 112;   int uplo = 122;   int diag = 131;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { 0.430509772467, -0.0927067365535, -0.611144484555, 0.999982608216 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1380) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1380) imag");     };   };  };  {   int order = 102;   int trans = 112;   int uplo = 122;   int diag = 132;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { 0.344, -0.143, -0.795928, -0.523879 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1381) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1381) imag");     };   };  };  {   int order = 101;   int trans = 113;   int uplo = 121;   int diag = 131;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { -1.47384781823, -0.286556198408, 1.03098932879, -0.824698794397 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1382) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1382) imag");     };   };  };  {   int order = 101;   int trans = 113;   int uplo = 121;   int diag = 132;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { -0.016172, 1.175911, -0.668, -0.945 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1383) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1383) imag");     };   };  };  {   int order = 101;   int trans = 113;   int uplo = 122;   int diag = 131;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { 0.369363905801, -0.239798891331, 1.1759505739, -1.40027235656 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1384) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1384) imag");     };   };  };  {   int order = 101;   int trans = 113;   int uplo = 122;   int diag = 132;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { 0.344, -0.143, -1.05676, -1.151335 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1385) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1385) imag");     };   };  };  {   int order = 102;   int trans = 113;   int uplo = 121;   int diag = 131;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { -1.47384781823, -0.286556198408, 1.03098932879, -0.824698794397 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1386) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1386) imag");     };   };  };  {   int order = 102;   int trans = 113;   int uplo = 121;   int diag = 132;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { -0.016172, 1.175911, -0.668, -0.945 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1387) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1387) imag");     };   };  };  {   int order = 102;   int trans = 113;   int uplo = 122;   int diag = 131;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { 0.369363905801, -0.239798891331, 1.1759505739, -1.40027235656 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1388) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1388) imag");     };   };  };  {   int order = 102;   int trans = 113;   int uplo = 122;   int diag = 132;   int N = 2;   double A[] = { 0.052, 0.875, 0.751, -0.912, 0.832, -0.153 };   double X[] = { 0.344, -0.143, -0.668, -0.945 };   int incX = -1;   double x_expected[] = { 0.344, -0.143, -1.05676, -1.151335 };   cblas_ztpsv(order, uplo, trans, diag, N, A, X, incX);   {     int i;     for (i = 0; i < 2; i++) {       gsl_test_rel(X[2*i], x_expected[2*i], dbleps, "ztpsv(case 1389) real");       gsl_test_rel(X[2*i+1], x_expected[2*i+1], dbleps, "ztpsv(case 1389) imag");     };   };  };}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -