org.netlib.arpack
Class Ssortc

java.lang.Object
  extended by org.netlib.arpack.Ssortc

public class Ssortc
extends java.lang.Object

Following is the description from the original
Fortran source.  For each array argument, the Java
version will include an integer offset parameter, so
the arguments may not match the description exactly.
Contact seymour@cs.utk.edu with any questions.

*----------------------------------------------------------------------- \BeginDoc \Name: ssortc \Description: Sorts the complex array in XREAL and XIMAG into the order specified by WHICH and optionally applies the permutation to the real array Y. It is assumed that if an element of XIMAG is nonzero, then its negative is also an element. In other words, both members of a complex conjugate pair are to be sorted and the pairs are kept adjacent to each other. \Usage: call ssortc ( WHICH, APPLY, N, XREAL, XIMAG, Y ) \Arguments WHICH Character*2. (Input) 'LM' -> sort XREAL,XIMAG into increasing order of magnitude. 'SM' -> sort XREAL,XIMAG into decreasing order of magnitude. 'LR' -> sort XREAL into increasing order of algebraic. 'SR' -> sort XREAL into decreasing order of algebraic. 'LI' -> sort XIMAG into increasing order of magnitude. 'SI' -> sort XIMAG into decreasing order of magnitude. NOTE: If an element of XIMAG is non-zero, then its negative is also an element. APPLY Logical. (Input) APPLY = .TRUE. -> apply the sorted order to array Y. APPLY = .FALSE. -> do not apply the sorted order to array Y. N Integer. (INPUT) Size of the arrays. XREAL, Real array of length N. (INPUT/OUTPUT) XIMAG Real and imaginary part of the array to be sorted. Y Real array of length N. (INPUT/OUTPUT) \EndDoc ----------------------------------------------------------------------- \BeginLib \Author Danny Sorensen Phuong Vu Richard Lehoucq CRPC / Rice University Dept. of Computational & Houston, Texas Applied Mathematics Rice University Houston, Texas \Revision history: xx/xx/92: Version ' 2.1' Adapted from the sort routine in LANSO. \SCCS Information: @(#) FILE: sortc.F SID: 2.3 DATE OF SID: 4/20/96 RELEASE: 2 \EndLib -----------------------------------------------------------------------


Constructor Summary
Ssortc()
           
 
Method Summary
static void ssortc(java.lang.String which, boolean apply, int n, float[] xreal, int _xreal_offset, float[] ximag, int _ximag_offset, float[] y, int _y_offset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ssortc

public Ssortc()
Method Detail

ssortc

public static void ssortc(java.lang.String which,
                          boolean apply,
                          int n,
                          float[] xreal,
                          int _xreal_offset,
                          float[] ximag,
                          int _ximag_offset,
                          float[] y,
                          int _y_offset)