sxmatrix2vector.c File Reference

#include "sxversion.h"
#include "sxunix.h"
#include "sxmatrix2vector.h"
Include dependency graph for sxmatrix2vector.c:

Go to the source code of this file.

Data Structures

struct  comb

Defines

#define PUSH(s, x)   (s)[++*(s)]=(x)
#define POP(s)   (s)[(*(s))--]
#define IS_EMPTY(s)   (*(s)==0)
#define CLEAR(s)   *(s)=0
#define TOP(s)   (*(s))

Functions

static SXBOOLEAN state_by_lgth (SXINT i, SXINT j)
static SXINT put_in_comb (SXINT state, struct matrix *matrix)
SXVOID vector_free (struct vector *vector)
void matrix2vector (struct matrix *matrix, struct vector *vector, SXINT percent)
static charval2type (SXINT min, SXINT max, char **error)
void vector2c (struct vector *vector, FILE *cfile, char *name, SXBOOLEAN is_static)

Variables

char WHAT_SXMATRIX2VECTOR [] = "@(#)SYNTAX - $Id: sxmatrix2vector.c 1429 2008-07-03 14:28:41Z rlacroix $" WHAT_DEBUG
static SXINT * state2trans_nb
static SXINT * sorted_by_state
static SXINT max_vval
static SXINT min_vval
static SXINT max_check
static SXINT min_check
static SXINT max_mval
static SXINT min_mval
static SXINT * xstack

Define Documentation

#define CLEAR (  )     *(s)=0

Definition at line 52 of file sxmatrix2vector.c.

Referenced by put_in_comb().

#define IS_EMPTY (  )     (*(s)==0)

Definition at line 51 of file sxmatrix2vector.c.

#define POP (  )     (s)[(*(s))--]

Definition at line 50 of file sxmatrix2vector.c.

#define PUSH ( s,
 )     (s)[++*(s)]=(x)

Definition at line 49 of file sxmatrix2vector.c.

#define TOP (  )     (*(s))

Definition at line 53 of file sxmatrix2vector.c.


Function Documentation

void matrix2vector ( struct matrix *  matrix,
struct vector vector,
SXINT  percent 
)
static SXINT put_in_comb ( SXINT  state,
struct matrix *  matrix 
) [static]
static SXBOOLEAN state_by_lgth ( SXINT  i,
SXINT  j 
) [static]

Definition at line 44 of file sxmatrix2vector.c.

References state2trans_nb.

Referenced by matrix2vector().

static char* val2type ( SXINT  min,
SXINT  max,
char **  error 
) [static]

Definition at line 339 of file sxmatrix2vector.c.

Referenced by vector2c().

void vector2c ( struct vector vector,
FILE *  cfile,
char name,
SXBOOLEAN  is_static 
)

Definition at line 399 of file sxmatrix2vector.c.

References check(), max, min, val, and val2type().

SXVOID vector_free ( struct vector vector  ) 

Definition at line 154 of file sxmatrix2vector.c.


Variable Documentation

SXINT max_check [static]

Definition at line 41 of file sxmatrix2vector.c.

Referenced by matrix2vector(), and put_in_comb().

SXINT max_mval [static]

Definition at line 41 of file sxmatrix2vector.c.

Referenced by matrix2vector().

SXINT max_vval [static]

Definition at line 41 of file sxmatrix2vector.c.

Referenced by matrix2vector(), and put_in_comb().

SXINT min_check [static]

Definition at line 41 of file sxmatrix2vector.c.

Referenced by matrix2vector(), and put_in_comb().

SXINT min_mval [static]

Definition at line 41 of file sxmatrix2vector.c.

Referenced by matrix2vector().

SXINT min_vval [static]

Definition at line 41 of file sxmatrix2vector.c.

Referenced by matrix2vector(), and put_in_comb().

SXINT * sorted_by_state [static]

Definition at line 33 of file sxmatrix2vector.c.

Referenced by matrix2vector().

SXINT* state2trans_nb [static]

Definition at line 33 of file sxmatrix2vector.c.

Referenced by matrix2vector(), and state_by_lgth().

char WHAT_SXMATRIX2VECTOR[] = "@(#)SYNTAX - $Id: sxmatrix2vector.c 1429 2008-07-03 14:28:41Z rlacroix $" WHAT_DEBUG

Definition at line 26 of file sxmatrix2vector.c.

SXINT* xstack [static]

Definition at line 55 of file sxmatrix2vector.c.

Referenced by matrix2vector(), and put_in_comb().


Generated on Wed Apr 21 16:39:38 2010 for syntax-6.0b7 by  doxygen 1.6.1