SIFEL/GEFEL/LAPACK/sptest.c File Reference

#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 BinCurrentArray
static int DiagPivoting = 1
static int ExpansionWarningGiven
static char * FileName
static struct BinFirstArray
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 Documentation

#define PRINT_LIMIT   9

Definition at line 113 of file sptest.c.

Referenced by InterpretCommandLine().

#define SCALE   1

Referenced by EnlargeVectors().

#define spINSIDE_SPARSE

Definition at line 53 of file sptest.c.


Function Documentation

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]
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]
int main ( int  ArgCount,
char *  Args[] 
)
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]
static void Usage ( char *  sBadOpt  )  [static]

Definition at line 126 of file sptest.c.

References ProgramName.

Referenced by InterpretCommandLine().


Variable Documentation

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]
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]
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().

MatrixPtr Matrix = NULL

Definition at line 121 of file sptest.c.

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]

Definition at line 115 of file sptest.c.

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]
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().


Generated by  doxygen 1.6.2