Rate This Document
Findability
Accuracy
Completeness
Readability

?rotmg

Construct a modified conversion plane.

Interface Definition

C interface:

void cblas_srotmg(float *d1, float *d2, float *b1, const float b2, float *P);

void cblas_drotmg(double *d1, double *d2, double *b1, const double b2, double *P);

Fortran interface:

CALL SROTMG(D1, D2, X1, X2, PARAM)

CALL DROTMG(D1, D2, X1, X2, PARAM)

Parameters

Parameter

Type

Description

Input/Output

d1

  • For srotmg, d1 is of single-precision floating-point type.
  • For drotmg, d1 is of double-precision floating-point type.

d1 value

Input/Output

d2

  • For srotmg, d2 is of single-precision floating-point type.
  • For drotmg, d2 is of double-precision floating-point type.

Value of d2

Input/Output

b1

  • For srotmg, b1 is of single-precision floating-point type.
  • For drotmg, b1 is of double-precision floating-point type.

Value of b1

Input/Output

b2

  • For srotmg, b2 is of single-precision floating-point type.
  • For drotmg, b2 is of double-precision floating-point type.

Value of b1

Input/Output

P

  • For srotmg, P is of single-precision floating-point type.
  • For drotmg, P is of double-precision floating-point type.

Conversion matrix H

Output

Dependencies

#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