<HTML>
<HEAD><TITLE>MB01SS - SLICOT Library Routine Documentation</TITLE>
</HEAD>
<BODY>
<H2><A Name="MB01SS">MB01SS</A></H2>
<H3>
Symmetric scaling of a symmetric matrix
</H3>
<A HREF ="#Specification"><B>[Specification]</B></A>
<A HREF ="#Arguments"><B>[Arguments]</B></A>
<A HREF ="#Method"><B>[Method]</B></A>
<A HREF ="#References"><B>[References]</B></A>
<A HREF ="#Comments"><B>[Comments]</B></A>
<A HREF ="#Example"><B>[Example]</B></A>
<P>
<B><FONT SIZE="+1">Purpose</FONT></B>
<PRE>
To scale a symmetric N-by-N matrix A using the row and column
scaling factors stored in the vector D.
</PRE>
<A name="Specification"><B><FONT SIZE="+1">Specification</FONT></B></A>
<PRE>
SUBROUTINE MB01SS( JOBS, UPLO, N, A, LDA, D )
C .. Scalar Arguments ..
CHARACTER JOBS, UPLO
INTEGER LDA, N
C .. Array Arguments ..
DOUBLE PRECISION A(LDA,*), D(*)
</PRE>
<A name="Arguments"><B><FONT SIZE="+1">Arguments</FONT></B></A>
<P>
<B>Mode Parameters</B>
<PRE>
JOBS CHARACTER*1
Specifies the scaling operation to be done, as follows:
= 'D': row and column scaling with D, i.e., A will be
transformed to diag(D)*A*diag(D);
= 'I': row and column scaling with inv(D), i.e., A will
be transformed to inv(diag(D))*A*inv(diag(D)).
UPLO CHARACTER*1
Specifies which triangle of the matrix A is stored, as
follows:
= 'U': Upper triangle is stored;
= 'L': Lower triangle is stored.
</PRE>
<B>Input/Output Parameters</B>
<PRE>
N (input) INTEGER
The order of the matrix A. N >= 0.
A (input/output) DOUBLE PRECISION array, dimension (LDA,N)
On entry, the leading N-by-N upper triangular part
(if UPLO = 'U') or lower triangular part (if UPLO = 'L')
of this array must contain the upper triangular part or
lower triangular part, respectively, of the symmetric
matrix A.
On exit, the leading N-by-N upper triangular part
(if UPLO = 'U') or lower triangular part (if UPLO = 'L')
of this array contains the corresponding triangular part
of the matrix diag(D)*A*diag(D), if JOBS = 'D', or of the
matrix inv(diag(D))*A*inv(diag(D)), JOBS = 'I'.
The stricly lower triangular part (if UPLO = 'U') or
stricly upper triangular part (if UPLO = 'L') is not
referenced.
LDA INTEGER
The leading dimension of the array A. LDA >= max(1,M).
D (input) DOUBLE PRECISION array, dimension (N)
The diagonal elements of the diagonal matrix D.
</PRE>
<A name="Comments"><B><FONT SIZE="+1">Further Comments</FONT></B></A>
<PRE>
None
</PRE>
<A name="Example"><B><FONT SIZE="+1">Example</FONT></B></A>
<P>
<B>Program Text</B>
<PRE>
None
</PRE>
<B>Program Data</B>
<PRE>
None
</PRE>
<B>Program Results</B>
<PRE>
None
</PRE>
<HR>
<A HREF=support.html><B>Return to Supporting Routines index</B></A></BODY>
</HTML>