Classes | Defines | Typedefs | Enumerations | Functions | Variables

svdlib.h File Reference

Go to the source code of this file.

Classes

struct  smat
struct  dmat
struct  svdrec

Defines

#define FALSE   0
#define TRUE   1
#define SVD_IS_SPARSE(format)   ((format >= SVD_F_STH) && (format <= SVD_F_SB))

Typedefs

typedef struct smatSMat
typedef struct dmatDMat
typedef struct svdrecSVDRec

Enumerations

enum  svdCounters {
  SVD_MXV, SVD_COUNTERS, SVD_MXV, SVD_COUNTERS,
  SVD_MXV, SVD_COUNTERS
}
enum  svdFileFormats {
  SVD_F_STH, SVD_F_ST, SVD_F_SB, SVD_F_DT,
  SVD_F_DB, SVD_F_STH, SVD_F_ST, SVD_F_SB,
  SVD_F_DT, SVD_F_DB, SVD_F_STH, SVD_F_ST,
  SVD_F_SB, SVD_F_DT, SVD_F_DB
}

Functions

void svdResetCounters (void)
DMat svdNewDMat (int rows, int cols)
void svdFreeDMat (DMat D)
SMat svdNewSMat (int rows, int cols, int vals)
void svdFreeSMat (SMat S)
SVDRec svdNewSVDRec (void)
void svdFreeSVDRec (SVDRec R)
DMat svdConvertStoD (SMat S)
SMat svdConvertDtoS (DMat D)
DMat svdTransposeD (DMat D)
SMat svdTransposeS (SMat S)
void svdWriteDenseArray (double *a, int n, char *filename, char binary)
double * svdLoadDenseArray (char *filename, int *np, char binary)
SMat svdLoadSparseMatrix (char *filename, int format)
DMat svdLoadDenseMatrix (char *filename, int format)
void svdWriteDenseMatrix (DMat A, char *filename, int format)
void svdWriteSparseMatrix (SMat A, char *filename, int format)
SVDRec svdLAS2 (SMat A, long dimensions, long iterations, double end[2], double kappa)
SVDRec svdLAS2A (SMat A, long dimensions)

Variables

char * SVDVersion
long SVDVerbosity
long SVDCount [SVD_COUNTERS]

Define Documentation

#define FALSE   0

Definition at line 5 of file svdlib.h.

#define SVD_IS_SPARSE (   format )    ((format >= SVD_F_STH) && (format <= SVD_F_SB))

Definition at line 67 of file svdlib.h.

#define TRUE   1

Definition at line 8 of file svdlib.h.


Typedef Documentation

typedef struct dmat* DMat

Definition at line 13 of file svdlib.h.

typedef struct smat* SMat

Definition at line 12 of file svdlib.h.

typedef struct svdrec* SVDRec

Definition at line 14 of file svdlib.h.


Enumeration Type Documentation

Enumerator:
SVD_MXV 
SVD_COUNTERS 
SVD_MXV 
SVD_COUNTERS 
SVD_MXV 
SVD_COUNTERS 

Definition at line 52 of file svdlib.h.

Enumerator:
SVD_F_STH 
SVD_F_ST 
SVD_F_SB 
SVD_F_DT 
SVD_F_DB 
SVD_F_STH 
SVD_F_ST 
SVD_F_SB 
SVD_F_DT 
SVD_F_DB 
SVD_F_STH 
SVD_F_ST 
SVD_F_SB 
SVD_F_DT 
SVD_F_DB 

Definition at line 56 of file svdlib.h.


Function Documentation

SMat svdConvertDtoS ( DMat  D )

Definition at line 104 of file svdlib.c.

DMat svdConvertStoD ( SMat  S )

Definition at line 89 of file svdlib.c.

void svdFreeDMat ( DMat  D )

Definition at line 37 of file svdlib.c.

void svdFreeSMat ( SMat  S )

Definition at line 60 of file svdlib.c.

void svdFreeSVDRec ( SVDRec  R )

Definition at line 77 of file svdlib.c.

SVDRec svdLAS2 ( SMat  A,
long  dimensions,
long  iterations,
double  end[2],
double  kappa 
)

Definition at line 326 of file las2.c.

SVDRec svdLAS2A ( SMat  A,
long  dimensions 
)

Definition at line 315 of file las2.c.

double* svdLoadDenseArray ( char *  filename,
int *  np,
char  binary 
)

Definition at line 183 of file svdlib.c.

DMat svdLoadDenseMatrix ( char *  filename,
int  format 
)

Definition at line 478 of file svdlib.c.

SMat svdLoadSparseMatrix ( char *  filename,
int  format 
)

Definition at line 448 of file svdlib.c.

DMat svdNewDMat ( int  rows,
int  cols 
)

Definition at line 20 of file svdlib.c.

SMat svdNewSMat ( int  rows,
int  cols,
int  vals 
)

Definition at line 45 of file svdlib.c.

SVDRec svdNewSVDRec ( void   )

Definition at line 70 of file svdlib.c.

void svdResetCounters ( void   )

Definition at line 10 of file svdlib.c.

DMat svdTransposeD ( DMat  D )

Definition at line 130 of file svdlib.c.

SMat svdTransposeS ( SMat  S )

Definition at line 140 of file svdlib.c.

void svdWriteDenseArray ( double *  a,
int  n,
char *  filename,
char  binary 
)

Definition at line 166 of file svdlib.c.

void svdWriteDenseMatrix ( DMat  A,
char *  filename,
int  format 
)

Definition at line 539 of file svdlib.c.

void svdWriteSparseMatrix ( SMat  A,
char *  filename,
int  format 
)

Definition at line 508 of file svdlib.c.


Variable Documentation

long SVDCount[SVD_COUNTERS]

Definition at line 8 of file svdlib.c.

Definition at line 7 of file svdlib.c.

char* SVDVersion

Definition at line 6 of file svdlib.c.