Classes | Macros | Functions | Variables
test/rw.c File Reference

A simple frequent itemset discovery program to test GKlib's routines. More...

#include <GKlib.h>
Include dependency graph for test/rw.c:

Go to the source code of this file.

Classes

struct  params_t
 

Macros

#define CMD_EPS   2
 
#define CMD_HELP   10
 
#define CMD_LAMDA   3
 
#define CMD_NITER   1
 
#define CMD_NTVS   5
 
#define CMD_PPR   4
 

Functions

int main (int argc, char *argv[])
 
params_tparse_cmdline (int argc, char *argv[])
 
void print_final_info (params_t *params)
 
void print_init_info (params_t *params, gk_csr_t *mat)
 

Variables

static char helpstr [][100]
 
static struct gk_option long_options []
 
static char shorthelpstr [][100]
 

Detailed Description

A simple frequent itemset discovery program to test GKlib's routines.

Date
6/12/2008
Author
George
Version
$Id: rw.c 11387 2012-01-21 23:36:23Z karypis $ 

Definition in file test/rw.c.

Macro Definition Documentation

◆ CMD_EPS

#define CMD_EPS   2

Definition at line 29 of file test/rw.c.

◆ CMD_HELP

#define CMD_HELP   10

Definition at line 33 of file test/rw.c.

◆ CMD_LAMDA

#define CMD_LAMDA   3

Definition at line 30 of file test/rw.c.

◆ CMD_NITER

#define CMD_NITER   1

Constants

Definition at line 28 of file test/rw.c.

◆ CMD_NTVS

#define CMD_NTVS   5

Definition at line 32 of file test/rw.c.

◆ CMD_PPR

#define CMD_PPR   4

Definition at line 31 of file test/rw.c.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

the entry point

Definition at line 103 of file test/rw.c.

◆ parse_cmdline()

params_t* parse_cmdline ( int  argc,
char *  argv[] 
)

This is the entry point of the command-line argument parser

Definition at line 240 of file test/rw.c.

◆ print_final_info()

void print_final_info ( params_t params)

This function prints final statistics

Definition at line 227 of file test/rw.c.

◆ print_init_info()

void print_init_info ( params_t params,
gk_csr_t mat 
)

Function prototypes

This function prints run parameters

Definition at line 206 of file test/rw.c.

Variable Documentation

◆ helpstr

char helpstr[][100]
static
Initial value:
= {
" ",
"Usage: rw [options] <graph-file> <out-file>",
" ",
" Required parameters",
" graph-file",
" The name of the file storing the transactions. The file is in ",
" Metis' graph format.",
" ",
" Optional parameters",
" -niter=int",
" Specifies the maximum number of iterations. [default: 100]",
" ",
" -lamda=float",
" Specifies the follow-the-adjacent-links probability. [default: 0.80]",
" ",
" -eps=float",
" Specifies the error tollerance. [default: 1e-10]",
" ",
" -ppr=int",
" Specifies the source of the personalized PR. [default: -1]",
" ",
" -ntvs=int",
" Specifies the number of test-vectors to compute. [default: -1]",
" ",
" -help",
" Prints this message.",
""
}

Definition at line 53 of file test/rw.c.

◆ long_options

struct gk_option long_options[]
static
Initial value:
= {
{"niter", 1, 0, CMD_NITER},
{"lamda", 1, 0, CMD_LAMDA},
{"eps", 1, 0, CMD_EPS},
{"ppr", 1, 0, CMD_PPR},
{"ntvs", 1, 0, CMD_NTVS},
{"help", 0, 0, CMD_HELP},
{0, 0, 0, 0}
}
#define CMD_HELP
Definition: test/rw.c:33
#define CMD_NTVS
Definition: test/rw.c:32
#define CMD_PPR
Definition: test/rw.c:31
#define CMD_LAMDA
Definition: test/rw.c:30
#define CMD_EPS
Definition: test/rw.c:29
#define CMD_NITER
Definition: test/rw.c:28

Local variables

Definition at line 39 of file test/rw.c.

◆ shorthelpstr

char shorthelpstr[][100]
static
Initial value:
= {
" ",
" Usage: rw [options] <graph-file> <out-file>",
" use 'rw -help' for a summary of the options.",
""
}

Definition at line 83 of file test/rw.c.



gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:40:52