LAPACK  3.5.0
LAPACK: Linear Algebra PACKage
 All Classes Files Functions Variables Typedefs Macros
sglmts.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine sglmts (N, M, P, A, AF, LDA, B, BF, LDB, D, DF, X, U, WORK, LWORK, RWORK, RESULT)
 SGLMTS More...
 

Function/Subroutine Documentation

subroutine sglmts ( integer  N,
integer  M,
integer  P,
real, dimension( lda, * )  A,
real, dimension( lda, * )  AF,
integer  LDA,
real, dimension( ldb, * )  B,
real, dimension( ldb, * )  BF,
integer  LDB,
real, dimension( * )  D,
real, dimension( * )  DF,
real, dimension( * )  X,
real, dimension( * )  U,
real, dimension( lwork )  WORK,
integer  LWORK,
real, dimension( * )  RWORK,
real  RESULT 
)

SGLMTS

Purpose:
 SGLMTS tests SGGGLM - a subroutine for solving the generalized
 linear model problem.
Parameters
[in]N
          N is INTEGER
          The number of rows of the matrices A and B.  N >= 0.
[in]M
          M is INTEGER
          The number of columns of the matrix A.  M >= 0.
[in]P
          P is INTEGER
          The number of columns of the matrix B.  P >= 0.
[in]A
          A is REAL array, dimension (LDA,M)
          The N-by-M matrix A.
[out]AF
          AF is REAL array, dimension (LDA,M)
[in]LDA
          LDA is INTEGER
          The leading dimension of the arrays A, AF. LDA >= max(M,N).
[in]B
          B is REAL array, dimension (LDB,P)
          The N-by-P matrix A.
[out]BF
          BF is REAL array, dimension (LDB,P)
[in]LDB
          LDB is INTEGER
          The leading dimension of the arrays B, BF. LDB >= max(P,N).
[in]D
          D is REAL array, dimension( N )
          On input, the left hand side of the GLM.
[out]DF
          DF is REAL array, dimension( N )
[out]X
          X is REAL array, dimension( M )
          solution vector X in the GLM problem.
[out]U
          U is REAL array, dimension( P )
          solution vector U in the GLM problem.
[out]WORK
          WORK is REAL array, dimension (LWORK)
[in]LWORK
          LWORK is INTEGER
          The dimension of the array WORK.
[out]RWORK
          RWORK is REAL array, dimension (M)
[out]RESULT
          RESULT is REAL
          The test ratio:
                           norm( d - A*x - B*u )
            RESULT = -----------------------------------------
                     (norm(A)+norm(B))*(norm(x)+norm(u))*EPS
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.
Date
November 2011

Definition at line 149 of file sglmts.f.

Here is the call graph for this function:

Here is the caller graph for this function: