我要评分
获取效率
正确性
完整性
易理解

?rotmg

Interface Definition

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)

Parameters

Parameter

Type

Description

Input/Output

d1

  • Single-precision floating-point type for srotmg
  • Double-precision floating-point type for drotmg

Value of d1.

Input/Output

d2

  • Single-precision floating-point type for srotmg
  • Double-precision floating-point type for drotmg

Value of d2.

Input/Output

b1

  • Single-precision floating-point type for srotmg
  • Double-precision floating-point type for drotmg

Value of b1.

Input/Output

b2

  • Single-precision floating-point type for srotmg
  • Double-precision floating-point type for drotmg

Value of b2.

Input/Output

H

  • Single-precision floating-point type for srotmg
  • Double-precision floating-point type for drotmg

Conversion matrix H.

Output

Dependency

#include "kblas.h"

Examples

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