#include <stdio.h>
#include <math.h>
#include <ctype.h>
#include <string.h>
#include <time.h>
#include "spConfig.h"
#include "spmatrix.h"
Go to the source code of this file.
Classes | |
struct | Bin |
Defines | |
#define | PRINT_LIMIT 9 |
#define | SCALE 1 |
#define | spINSIDE_SPARSE |
Functions | |
static void | CheckInAllComplexArrays () |
static ComplexVector | CheckOutComplexArray (int Count) |
static void | EnlargeVectors (int NewSize, int Clear) |
static char * | GetProgramName (char *Arg0) |
static int | Init (double *pElement, char *pInitInfo) |
int | Init () |
static int | InterpretCommandLine (int ArgCount, char *Args[]) |
int | main (int ArgCount, char *Args[]) |
static void | PrintMatrixErrorMessage (int Error) |
static int | ReadMatrixFromFile () |
static void | Usage (char *sBadOpt) |
Variables | |
static double | AbsThreshold = 0.0 |
static int | ColumnAsRHS = 1 |
static int | Complex |
static int | CreatePlotFiles = 0 |
static ComplexVector | cRHS |
static ComplexVector | cRHS_Verif |
static ComplexVector | cSolution |
static struct Bin * | CurrentArray |
static int | DiagPivoting = 1 |
static int | ExpansionWarningGiven |
static char * | FileName |
static struct Bin * | FirstArray |
static double * | iRHS |
static double * | iRHS_Verif |
static double * | iSolution |
static int | Iterations = 1 |
MatrixPtr | Matrix = NULL |
static int | MaxSize = 0 |
static char | Message [BUFSIZ] |
static int | PrintLimit = 9 |
static int | PrintLimitSet = 0 |
static char * | ProgramName |
static int | RealAsComplex = 0 |
static double | RelThreshold = 0.0 |
static double * | RHS |
static double * | RHS_Verif |
static int | Size |
static double * | Solution |
static int | SolutionOnly = 0 |
static int | Transposed = 0 |
static int | UseColumnAsRHS = 0 |
#define PRINT_LIMIT 9 |
Definition at line 113 of file sptest.c.
Referenced by InterpretCommandLine().
#define SCALE 1 |
Referenced by EnlargeVectors().
static void CheckInAllComplexArrays | ( | ) | [static] |
Definition at line 67 of file sptest.c.
References CurrentArray, and FirstArray.
Referenced by main().
static ComplexVector CheckOutComplexArray | ( | int | Count | ) | [static] |
Definition at line 982 of file sptest.c.
References ALLOC, Bin::Array, CurrentArray, FirstArray, Bin::Next, and ProgramName.
Referenced by ReadMatrixFromFile().
static void EnlargeVectors | ( | int | NewSize, | |
int | Clear | |||
) | [static] |
Definition at line 1068 of file sptest.c.
References ALLOC, Complex, cRHS, cRHS_Verif, cSolution, iRHS, iRHS_Verif, iSolution, MAX, MaxSize, ProgramName, RealAsComplex, RHS, RHS_Verif, SCALE, and Solution.
Referenced by ReadMatrixFromFile().
static char* GetProgramName | ( | char * | Arg0 | ) | [static] |
Definition at line 1055 of file sptest.c.
Referenced by InterpretCommandLine().
static int Init | ( | double * | pElement, | |
char * | pInitInfo | |||
) | [static] |
Definition at line 974 of file sptest.c.
References Complex, and RealAsComplex.
int Init | ( | ) |
static int InterpretCommandLine | ( | int | ArgCount, | |
char * | Args[] | |||
) | [static] |
Definition at line 153 of file sptest.c.
References AbsThreshold, ColumnAsRHS, CreatePlotFiles, DiagPivoting, GetProgramName(), Iterations, MAX, PRINT_LIMIT, PrintLimit, PrintLimitSet, ProgramName, RealAsComplex, RelThreshold, SolutionOnly, Transposed, Usage(), and UseColumnAsRHS.
Referenced by main().
int main | ( | int | ArgCount, | |
char * | Args[] | |||
) |
Definition at line 312 of file sptest.c.
References AbsThreshold, BOOLEAN, CheckInAllComplexArrays(), Complex, CreatePlotFiles, cRHS, cRHS_Verif, cSolution, DiagPivoting, ExpansionWarningGiven, FileName, Init(), InterpretCommandLine(), iRHS, iRHS_Verif, iSolution, Iterations, MIN, PrintLimit, PrintLimitSet, PrintMatrixErrorMessage(), ProgramName, ReadMatrixFromFile(), RealAsComplex, RelThreshold, RHS, RHS_Verif, Size, Solution, SolutionOnly, spCOMPLEX, spCondition(), spCreate(), spDestroy(), spDeterminant(), spElementCount(), spFactor(), spFileMatrix(), spFileStats(), spGetSize(), spLargestElement(), spMNA_Preorder(), spMultiply(), spMultTransposed(), spNorm(), spOrderAndFactor(), spPartition(), spPrint(), spPseudoCondition(), spRoundoff(), spSolve(), spSolveTransposed(), and Transposed.
static void PrintMatrixErrorMessage | ( | int | Error | ) | [static] |
Definition at line 1020 of file sptest.c.
References FileName, ProgramName, spNO_MEMORY, and spWhereSingular().
Referenced by main(), and ReadMatrixFromFile().
static int ReadMatrixFromFile | ( | ) | [static] |
Definition at line 699 of file sptest.c.
References CheckOutComplexArray(), ColumnAsRHS, Complex, cRHS, EnlargeVectors(), ExpansionWarningGiven, FileName, iRHS, MAX, Message, MIN, p, PrintMatrixErrorMessage(), ProgramName, RealAsComplex, RHS, Size, SolutionOnly, spError(), spGetElement(), spGetSize(), and UseColumnAsRHS.
Referenced by main().
static void Usage | ( | char * | sBadOpt | ) | [static] |
Definition at line 126 of file sptest.c.
References ProgramName.
Referenced by InterpretCommandLine().
double AbsThreshold = 0.0 [static] |
Definition at line 122 of file sptest.c.
Referenced by InterpretCommandLine(), and main().
int ColumnAsRHS = 1 [static] |
Definition at line 116 of file sptest.c.
Referenced by InterpretCommandLine(), and ReadMatrixFromFile().
int Complex [static] |
Definition at line 117 of file sptest.c.
Referenced by EnlargeVectors(), Init(), main(), and ReadMatrixFromFile().
int CreatePlotFiles = 0 [static] |
Definition at line 118 of file sptest.c.
Referenced by InterpretCommandLine(), and main().
ComplexVector cRHS [static] |
Definition at line 124 of file sptest.c.
Referenced by EnlargeVectors(), main(), and ReadMatrixFromFile().
ComplexVector cRHS_Verif [static] |
Definition at line 124 of file sptest.c.
Referenced by EnlargeVectors(), and main().
ComplexVector cSolution [static] |
Definition at line 124 of file sptest.c.
Referenced by EnlargeVectors(), and main().
struct Bin * CurrentArray [static] |
Referenced by CheckInAllComplexArrays(), and CheckOutComplexArray().
int DiagPivoting = 1 [static] |
Definition at line 119 of file sptest.c.
Referenced by InterpretCommandLine(), and main().
int ExpansionWarningGiven [static] |
Definition at line 119 of file sptest.c.
Referenced by main(), and ReadMatrixFromFile().
char * FileName [static] |
Definition at line 115 of file sptest.c.
Referenced by main(), PrintMatrixErrorMessage(), and ReadMatrixFromFile().
struct Bin * FirstArray [static] |
Referenced by CheckInAllComplexArrays(), and CheckOutComplexArray().
double * iRHS [static] |
Definition at line 123 of file sptest.c.
Referenced by EnlargeVectors(), main(), ReadMatrixFromFile(), and spFileVector().
double * iRHS_Verif [static] |
Definition at line 123 of file sptest.c.
Referenced by EnlargeVectors(), and main().
double * iSolution [static] |
Definition at line 123 of file sptest.c.
Referenced by EnlargeVectors(), and main().
int Iterations = 1 [static] |
Definition at line 116 of file sptest.c.
Referenced by InterpretCommandLine(), and main().
int MaxSize = 0 [static] |
Definition at line 116 of file sptest.c.
Referenced by EnlargeVectors().
char Message[BUFSIZ] [static] |
Definition at line 120 of file sptest.c.
Referenced by ReadMatrixFromFile().
int PrintLimit = 9 [static] |
Definition at line 116 of file sptest.c.
Referenced by InterpretCommandLine(), and main().
int PrintLimitSet = 0 [static] |
Definition at line 118 of file sptest.c.
Referenced by InterpretCommandLine(), and main().
char* ProgramName [static] |
int RealAsComplex = 0 [static] |
Definition at line 117 of file sptest.c.
Referenced by EnlargeVectors(), Init(), InterpretCommandLine(), main(), and ReadMatrixFromFile().
double RelThreshold = 0.0 [static] |
Definition at line 122 of file sptest.c.
Referenced by InterpretCommandLine(), main(), and SearchDiagonal().
double* RHS [static] |
Definition at line 123 of file sptest.c.
Referenced by EnlargeVectors(), main(), and ReadMatrixFromFile().
double * RHS_Verif [static] |
Definition at line 123 of file sptest.c.
Referenced by EnlargeVectors(), and main().
int Size [static] |
Definition at line 116 of file sptest.c.
Referenced by CountMarkowitz(), CreateInternalVectors(), main(), MarkowitzProducts(), ReadMatrixFromFile(), SearchDiagonal(), SearchEntireMatrix(), spDeterminant(), spFactor(), spFileMatrix(), spFileStats(), spFileVector(), spGetElement(), spMNA_Preorder(), spOrderAndFactor(), spPartition(), spPrint(), and spStripFills().
double * Solution [static] |
Definition at line 123 of file sptest.c.
Referenced by EnlargeVectors(), and main().
int SolutionOnly = 0 [static] |
Definition at line 117 of file sptest.c.
Referenced by InterpretCommandLine(), main(), and ReadMatrixFromFile().
int Transposed = 0 [static] |
Definition at line 117 of file sptest.c.
Referenced by InterpretCommandLine(), and main().
int UseColumnAsRHS = 0 [static] |
Definition at line 118 of file sptest.c.
Referenced by InterpretCommandLine(), and ReadMatrixFromFile().