FNLMath : Utilities
Utilities
Routines
ScaLAPACK Utilities
Sets up a processor grid ScaLAPACK_SETUP
Calculates array dimensions for local arrays ScaLAPACK_GETDIM
Reads matrix data from a file ScaLAPACK_READ
Writes the matrix data to a file ScaLAPACK_WRITE
Reads matrix data from an array ScaLAPACK_MAP
Writes the matrix data to a global array ScaLAPACK_UNMAP
Exits ScaLAPACK usage ScaLAPACK_EXIT
Print
Prints error messages ERROR_POST
Prints rank-1 or rank-2 arrays of numbers SHOW
Real rectangular matrix with integer row and column labels WRRRN
Real rectangular matrix with given format and labels WRRRL
Integer rectangular matrix with integer row and column labels WRIRN
Integer rectangular matrix with given format and labels WRIRL
Complex rectangular matrix with row and column labels WRCRN
Complex rectangular matrix with given format and labels WRCRL
Sets or retrieves options for printing a matrix WROPT
Sets or retrieves page width and length PGOPT
Permute
Elements of a vector PERMU
Rows/columns of a matrix PERMA
Sort
Sorts a rank-1 array of real numbers x so the y results are algebraically
nondecreasing, y1 y2 yn SORT_REAL
Real vector by algebraic value SVRGN
Real vector by algebraic value and permutations returned SVRGP
Integer vector by algebraic value SVIGN
Integer vector by algebraic value and permutations returned SVIGP
Real vector by absolute value SVRBN
Real vector by absolute value and permutations returned SVRBP
Integer vector by absolute value SVIBN
Integer vector by absolute value and permutations returned SVIBP
Search
Sorted real vector for a number SRCH
Sorted integer vector for a number ISRCH
Sorted character vector for a string SSRCH
Character String Manipulation
Gets the character corresponding to a given ASCII value ACHAR
Get the integer ASCII value for a given character IACHAR
Gets upper case integer ASCII value for a character ICASE
Case-insensitive version comparing two strings IICSR
Case-insensitive version of intrinsic function IIDEX
Converts a character string with digits to an integer CVTSI
Time, Date, and Version
CPU time CPSEC
Time of day TIMDY
Today’s date TDATE
Number of days from January 1, 1900, to the given date NDAYS
Date for the number of days from January 1, 1900 NDYIN
Day of week for given date IDYWK
Version and system information VERML
Random Number Generation
Generates a rank-1 array of random numbers RAND_GEN
Retrieves the current value of the seed RNGET
Initializes a random seed RNSET
Selects the uniform (0,1) generator RNOPT
Initializes the 32-bit Mersenne Twister generator using an array RNIN32
Retrieves the current table used in the 32-bit Mersenne Twister generator RNGE32
Sets the current table used in the 32-bit Mersenne Twister generator RNSE32
Initializes the 32-bit Mersenne Twister generator using an array RNIN64
Retrieves the current table used in the 64-bit Mersenne Twister generator IIDEX
Sets the current table used in the 64-bit Mersenne Twister generator RNSE64
Generates pseudorandom numbers (function form) RNUNF
Generates pseudorandom numbers RNUN
Low Discrepancy Sequences
Shuffled Faure sequence initialization FAURE_INIT
Frees the structure containing information about
the Faure sequence FAURE_FREE
Computes a shuffled Faure sequence FAURE_NEXT
Options Manager
Gets and puts type INTEGER options IUMAG
Gets and puts type REAL options UMAG
Gets and puts type DOUBLE PRECISION options DUMAG
Line Printer Graphics
Prints plot of up to 10 sets of points PLOTP
Miscellaneous
Decomposes an integer into its prime factors PRIME
Returns mathematical and physical constants CONST
Converts a quantity to different units CUNIT
Computes square root of a2 + b2 without underflow or overflow HYPOT
Initializes or finalizes MPI. MP_SETUP