?rotmg
构造修改的转换平面。
接口定义
C interface:
void cblas_srotmg(float *d1, float *d2, float *b1, const float b2, float *H);
void cblas_drotmg(double *d1, double *d2, double *b1, const double b2, double *H);
Fortran interface:
CALL SROTMG(D1, D2, X1, X2, PARAM)
CALL DROTMG(D1, D2, X1, X2, PARAM)
参数
参数名 |
类型 |
描述 |
输入/输出 |
---|---|---|---|
d1 |
|
d1取值 |
输入/输出 |
d2 |
|
d2取值 |
输入/输出 |
b1 |
|
b1取值 |
输入/输出 |
b2 |
|
b2取值 |
输入/输出 |
H |
|
转换矩阵H |
输出 |
依赖
#include "kblas.h"
示例
C interface:
double d1 = 10.0, d2 = 1.0, x1 = -2.0, x2 = 4.0; double p[5]; cblas_drotmg(&d1, &d2, &x1, x2, p); /** * d1:7.142857, d2:0.714286, x1:-2.800000, x2:4.000000 * param:0.000000, 0.000000, 2.000000, -0.200000, 0.000000 */
Fortran interface:
REAL(8) :: D1=10.0 REAL(8) :: D2=1.0 REAL(8) :: X1=-2.0 REAL(8) :: X2=4.0 REAL(8) :: PARAM(5) EXTERNAL DROTMG CALL DROTMG(D1, D2, X1, X2, P) * D1:7.142857, D2:0.714286, X1:-2.800000, X2:4.000000 * PARAM:0.000000, 0.000000, 2.000000, -0.200000, 0.000000
父主题: KML_BLAS Level 1函数