File: dlartgs

package info (click to toggle)
ruby-lapack 1.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 29,304 kB
  • ctags: 3,419
  • sloc: ansic: 190,572; ruby: 3,937; makefile: 4
file content (57 lines) | stat: -rw-r--r-- 1,598 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
--- 
:name: dlartgs
:md5sum: bf0292e885c671bdbb8046966e02a27e
:category: :subroutine
:arguments: 
- x: 
    :type: doublereal
    :intent: input
- y: 
    :type: doublereal
    :intent: input
- sigma: 
    :type: doublereal
    :intent: input
- cs: 
    :type: doublereal
    :intent: output
- sn: 
    :type: doublereal
    :intent: output
:substitutions: {}

:fortran_help: "      SUBROUTINE DLARTGS( X, Y, SIGMA, CS, SN )\n\n\
  *  Purpose\n\
  *  =======\n\
  *\n\
  *  DLARTGS generates a plane rotation designed to introduce a bulge in\n\
  *  Golub-Reinsch-style implicit QR iteration for the bidiagonal SVD\n\
  *  problem. X and Y are the top-row entries, and SIGMA is the shift.\n\
  *  The computed CS and SN define a plane rotation satisfying\n\
  *\n\
  *     [  CS  SN  ]  .  [ X^2 - SIGMA ]  =  [ R ],\n\
  *     [ -SN  CS  ]     [    X * Y    ]     [ 0 ]\n\
  *\n\
  *  with R nonnegative.  If X^2 - SIGMA and X * Y are 0, then the\n\
  *  rotation is by PI/2.\n\
  *\n\n\
  *  Arguments\n\
  *  =========\n\
  *\n\
  *  X       (input) DOUBLE PRECISION\n\
  *          The (1,1) entry of an upper bidiagonal matrix.\n\
  *\n\
  *  Y       (input) DOUBLE PRECISION\n\
  *          The (1,2) entry of an upper bidiagonal matrix.\n\
  *\n\
  *  SIGMA   (input) DOUBLE PRECISION\n\
  *          The shift.\n\
  *\n\
  *  CS      (output) DOUBLE PRECISION\n\
  *          The cosine of the rotation.\n\
  *\n\
  *  SN      (output) DOUBLE PRECISION\n\
  *          The sine of the rotation.\n\
  *\n\n\
  *  ===================================================================\n\
  *\n"