control_systems_torbox 0.2.1

Control systems toolbox
Documentation
<HTML>
<HEAD><TITLE>MB01SD - SLICOT Library Routine Documentation</TITLE>
</HEAD>
<BODY>

<H2><A Name="MB01SD">MB01SD</A></H2>
<H3>
Scaling a rectangular matrix using given row and column scaling factors
</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 general M-by-N matrix A using the row and column
  scaling factors in the vectors R and C.

</PRE>
<A name="Specification"><B><FONT SIZE="+1">Specification</FONT></B></A>
<PRE>
      SUBROUTINE MB01SD( JOBS, M, N, A, LDA, R, C )
C     .. Scalar Arguments ..
      CHARACTER          JOBS
      INTEGER            LDA, M, N
C     .. Array Arguments ..
      DOUBLE PRECISION   A(LDA,*), C(*), R(*)

</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:
          = 'R':  row scaling, i.e., A will be premultiplied
                  by diag(R);
          = 'C':  column scaling, i.e., A will be postmultiplied
                  by diag(C);
          = 'B':  both row and column scaling, i.e., A will be
                  replaced by diag(R) * A * diag(C).

</PRE>
<B>Input/Output Parameters</B>
<PRE>
  M       (input) INTEGER
          The number of rows of the matrix A.  M &gt;= 0.

  N       (input) INTEGER
          The number of columns of the matrix A.  N &gt;= 0.

  A       (input/output) DOUBLE PRECISION array, dimension (LDA,N)
          On entry, the M-by-N matrix A.
          On exit, the scaled matrix.  See JOBS for the form of the
          scaled matrix.

  LDA     INTEGER
          The leading dimension of the array A.  LDA &gt;= max(1,M).

  R       (input) DOUBLE PRECISION array, dimension (M)
          The row scale factors for A.
          R is not referenced if JOBS = 'C'.

  C       (input) DOUBLE PRECISION array, dimension (N)
          The column scale factors for A.
          C is not referenced if JOBS = 'R'.

</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>