Classes | Defines | Typedefs | Functions
sparse-matrix.h File Reference
#include "Const.h"
Include dependency graph for sparse-matrix.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  I_Matrix_Row_Node_Struct
struct  I_Matrix_Struct
struct  Matrix_Struct

Defines

#define IS_ZERO(X)   ((X < POS_ZERO_TOLERANCE) && ( X > NEG_ZERO_TOLERANCE ))
#define NEG_ZERO_TOLERANCE   -0.0000000001
#define POS_ZERO_TOLERANCE   0.0000000001

Typedefs

typedef struct I_Matrix_StructI_Matrix
typedef struct
I_Matrix_Row_Node_Struct
I_Matrix_Row_Node
typedef struct Matrix_StructMatrix

Functions

int accumulateEntryInIMatrix (I_Matrix i_matrix, int row, int col, REAL_VALUE value)
int addEntryToIMatrix (I_Matrix i_matrix, int row, int col, REAL_VALUE value)
I_Matrix_Row_Node addEntryToRow (I_Matrix_Row_Node row, int col, REAL_VALUE value, int *count, int accumulate)
void destroyIMatrix (I_Matrix i_matrix)
void destroyMatrix (Matrix matrix)
void destroyRow (I_Matrix_Row_Node row)
void displayMatrix (Matrix matrix)
void displayRow (I_Matrix_Row_Node row)
REAL_VALUE getEntryMatrix (Matrix matrix, int row, int col)
I_Matrix newIMatrix (int num_rows)
Matrix newMatrix (int num_rows, int num_non_zero)
REAL_VALUE sumIMatrixRowValues (I_Matrix i_matrix, int row)
REAL_VALUE sumRowValues (Matrix matrix, int row)
Matrix transformIMatrix (I_Matrix i_matrix)

Define Documentation

#define IS_ZERO (   X)    ((X < POS_ZERO_TOLERANCE) && ( X > NEG_ZERO_TOLERANCE ))

Definition at line 37 of file sparse-matrix.h.

#define NEG_ZERO_TOLERANCE   -0.0000000001

Definition at line 35 of file sparse-matrix.h.

#define POS_ZERO_TOLERANCE   0.0000000001

Definition at line 34 of file sparse-matrix.h.


Typedef Documentation

typedef struct I_Matrix_Struct* I_Matrix

Definition at line 63 of file sparse-matrix.h.

Definition at line 46 of file sparse-matrix.h.

typedef struct Matrix_Struct* Matrix

Definition at line 75 of file sparse-matrix.h.


Function Documentation

int accumulateEntryInIMatrix ( I_Matrix  i_matrix,
int  row,
int  col,
REAL_VALUE  value 
)

Definition at line 254 of file sparse-matrix.c.

int addEntryToIMatrix ( I_Matrix  i_matrix,
int  row,
int  col,
REAL_VALUE  value 
)

Definition at line 242 of file sparse-matrix.c.

I_Matrix_Row_Node addEntryToRow ( I_Matrix_Row_Node  row,
int  col,
REAL_VALUE  value,
int *  count,
int  accumulate 
)

Definition at line 110 of file sparse-matrix.c.

void destroyIMatrix ( I_Matrix  i_matrix)

Definition at line 229 of file sparse-matrix.c.

void destroyMatrix ( Matrix  matrix)

Definition at line 330 of file sparse-matrix.c.

Definition at line 56 of file sparse-matrix.c.

void displayMatrix ( Matrix  matrix)

Definition at line 400 of file sparse-matrix.c.

Definition at line 197 of file sparse-matrix.c.

REAL_VALUE getEntryMatrix ( Matrix  matrix,
int  row,
int  col 
)

Definition at line 422 of file sparse-matrix.c.

I_Matrix newIMatrix ( int  num_rows)

Definition at line 213 of file sparse-matrix.c.

Matrix newMatrix ( int  num_rows,
int  num_non_zero 
)

Definition at line 309 of file sparse-matrix.c.

REAL_VALUE sumIMatrixRowValues ( I_Matrix  i_matrix,
int  row 
)

Definition at line 281 of file sparse-matrix.c.

REAL_VALUE sumRowValues ( Matrix  matrix,
int  row 
)

Definition at line 388 of file sparse-matrix.c.

Definition at line 350 of file sparse-matrix.c.



appl
Author(s): petercai
autogenerated on Tue Jan 7 2014 11:02:30