Defines | |
#define | it_assert(a, expr) __it_assert((long)(a), "", 0, expr) |
Functions | |
void | it_vprintf (char *fmt, va_list args) |
void | it_fprintf (FILE *output, char *fmt,...) |
void | it_printf (char *fmt,...) |
void | it_vfprintf (FILE *output, char *fmt, va_list ap) |
void | it_warning (char *fmt,...) |
void | it_error (char *fmt,...) |
void | __it_assert (int a, const char *filename, int line, char *message) |
void | it_set_vec_default_fmt (char *fmt) |
void | it_set_mat_default_fmt (char *fmt) |
char * | it_read_int (char *s, int *p_val) |
char * | it_read_float (char *s, float *p_val) |
char * | it_read_double (char *s, double *p_val) |
char * | it_read_cplx (char *s, cplx *p_val) |
char * | it_read_vec (char *s, vec *v) |
char * | it_read_fvec (char *s, vec *v) |
char * | it_read_ivec (char *s, ivec *v) |
char * | it_read_bvec (char *s, bvec *v) |
char * | it_read_cvec (char *s, cvec *v) |
char * | it_read_mat (char *s, mat *m) |
char * | it_read_fmat (char *s, mat *m) |
char * | it_read_imat (char *s, imat *m) |
char * | it_read_bmat (char *s, bmat *m) |
char * | it_read_cmat (char *s, cmat *m) |
vec | vec_new_string (char *s) |
vec | fvec_new_string (char *s) |
ivec | ivec_new_string (char *s) |
bvec | bvec_new_string (char *s) |
cvec | cvec_new_string (char *s) |
mat | mat_new_string (char *s) |
mat | fmat_new_string (char *s) |
imat | imat_new_string (char *s) |
bmat | bmat_new_string (char *s) |
cmat | cmat_new_string (char *s) |
char | pnm_type (const char *filename) |
int | pnm_info (const char *filename, char *p_pnm_type, int *p_width, int *p_height, int *p_max_val, char *comments, int length) |
mat | mat_pgm_read (const char *filename) |
imat | imat_pgm_read (const char *filename) |
int | mat_pgm_write (const char *filename, mat m) |
int | imat_pgm_write (const char *filename, imat m) |
int | wav_info (const char *filename, int *p_channels, int *p_srate, int *p_depth, int *p_length) |
mat | mat_wav_read (const char *filename) |
imat | imat_wav_read (const char *filename) |
void | mat_wav_write (const char *filename, mat m, int srate, int depth) |
void | imat_wav_write (const char *filename, imat m, int srate, int depth) |
void | vec_fwrite (FILE *stream, vec v) |
void | fvec_fwrite (FILE *stream, vec v) |
void | bvec_fwrite (FILE *stream, bvec v) |
void | ivec_fwrite (FILE *stream, ivec v) |
void | cvec_fwrite (FILE *stream, cvec v) |
int | vec_fread (FILE *stream, vec v) |
int | fvec_fread (FILE *stream, vec v) |
int | bvec_fread (FILE *stream, bvec v) |
int | ivec_fread (FILE *stream, ivec v) |
int | cvec_fread (FILE *stream, cvec v) |
vec | vec_new_fread (FILE *stream) |
vec | fvec_new_fread (FILE *stream) |
bvec | bvec_new_fread (FILE *stream) |
ivec | ivec_new_fread (FILE *stream) |
cvec | cvec_new_fread (FILE *stream) |
void | mat_fwrite (FILE *stream, mat m) |
void | fmat_fwrite (FILE *stream, mat m) |
void | bmat_fwrite (FILE *stream, bmat m) |
void | imat_fwrite (FILE *stream, imat m) |
void | cmat_fwrite (FILE *stream, cmat m) |
int | vec_sread (void *buffer, vec v) |
int | fvec_sread (void *buffer, vec v) |
int | ivec_sread (void *buffer, ivec v) |
mat | mat_new_fread (FILE *stream) |
bmat | bmat_new_fread (FILE *stream) |
imat | imat_new_fread (FILE *stream) |
cmat | cmat_new_fread (FILE *stream) |
bvec | bvec_file_read_bits (const char *filename, int nb_max) |
void | bvec_file_write_bits (const char *filename, bvec v) |
#define it_assert | ( | a, | |||
expr | ) | __it_assert((long)(a), "", 0, expr) |
Definition at line 55 of file io.h.
Referenced by __Vec_new_alloc(), _bmat_transpose(), _imat_transpose(), _mat_transpose(), bmat_diag(), bmat_get_submatrix(), bmat_set_diag(), bmat_set_submatrix(), bmat_swap_cols(), bmat_swap_rows(), bvec_new_geom(), bvec_to_bmat(), cmat_diag(), cmat_inv(), cmat_set_diag(), cmat_swap_cols(), cmat_swap_rows(), cvec_to_cmat(), entropy_markov(), fpICA(), imat_diag(), imat_get_submatrix(), imat_max_index_submatrix(), imat_min_index_submatrix(), imat_mul(), imat_set_diag(), imat_set_submatrix(), imat_swap_cols(), imat_swap_rows(), it_read_cplx(), ivec_new_geom(), ivec_new_perm(), ivec_to_imat(), lpoly_ediv(), mat_cholesky(), mat_diag(), mat_eig(), mat_eig_sym(), mat_get_submatrix(), mat_h2rs(), mat_hessenberg(), mat_inv_direct(), mat_ls(), mat_lu(), mat_max_index_submatrix(), mat_min_index_submatrix(), mat_mul(), mat_mul_transpose_left(), mat_mul_transpose_leftright(), mat_mul_transpose_right(), mat_real_schur(), mat_set_diag(), mat_set_submatrix(), mat_solve_mat(), mat_solve_vec(), mat_svd(), mat_swap_cols(), mat_swap_rows(), mat_tridiag(), PCAmat(), selcol(), source_memoryless(), vec_new_geom(), vec_to_mat(), and whitenv().
void __it_assert | ( | int | a, | |
const char * | filename, | |||
int | line, | |||
char * | message | |||
) |
void bmat_fwrite | ( | FILE * | stream, | |
bmat | m | |||
) |
bmat bmat_new_fread | ( | FILE * | stream | ) |
bmat bmat_new_string | ( | char * | s | ) |
bvec bvec_file_read_bits | ( | const char * | filename, | |
int | nb_max | |||
) |
Definition at line 2288 of file io.c.
References bvec_delete(), bvec_length(), bvec_new(), and it_error().
Referenced by main().
void bvec_file_write_bits | ( | const char * | filename, | |
bvec | v | |||
) |
Definition at line 2329 of file io.c.
References bvec_delete(), bvec_length(), bvec_new_zeros(), and it_error().
Referenced by main().
int bvec_fread | ( | FILE * | stream, | |
bvec | v | |||
) |
void bvec_fwrite | ( | FILE * | stream, | |
bvec | v | |||
) |
bvec bvec_new_fread | ( | FILE * | stream | ) |
bvec bvec_new_string | ( | char * | s | ) |
Definition at line 1097 of file io.c.
References bvec_new_alloc(), it_error(), and it_read_bvec().
Referenced by main().
void cmat_fwrite | ( | FILE * | stream, | |
cmat | m | |||
) |
cmat cmat_new_fread | ( | FILE * | stream | ) |
cmat cmat_new_string | ( | char * | s | ) |
int cvec_fread | ( | FILE * | stream, | |
cvec | v | |||
) |
void cvec_fwrite | ( | FILE * | stream, | |
cvec | v | |||
) |
cvec cvec_new_fread | ( | FILE * | stream | ) |
cvec cvec_new_string | ( | char * | s | ) |
Definition at line 1108 of file io.c.
References cvec_new_alloc(), it_error(), and it_read_cvec().
Referenced by main().
void fmat_fwrite | ( | FILE * | stream, | |
mat | m | |||
) |
mat fmat_new_string | ( | char * | s | ) |
int fvec_fread | ( | FILE * | stream, | |
vec | v | |||
) |
void fvec_fwrite | ( | FILE * | stream, | |
vec | v | |||
) |
vec fvec_new_string | ( | char * | s | ) |
int fvec_sread | ( | void * | buffer, | |
vec | v | |||
) |
void imat_fwrite | ( | FILE * | stream, | |
imat | m | |||
) |
imat imat_new_fread | ( | FILE * | stream | ) |
imat imat_new_string | ( | char * | s | ) |
imat imat_pgm_read | ( | const char * | filename | ) |
Definition at line 1336 of file io.c.
References _it_wavelet2D_::height, imat_new(), it_printf(), pnm_read_header(), and _it_wavelet2D_::width.
Referenced by main().
int imat_pgm_write | ( | const char * | filename, | |
imat | m | |||
) |
Definition at line 1389 of file io.c.
References imat_height(), imat_width(), and pnm_write_header().
Referenced by main().
imat imat_wav_read | ( | const char * | filename | ) |
Definition at line 1689 of file io.c.
References imat_new(), it_printf(), wav_read_header(), and wav_read_sample().
Referenced by main().
void imat_wav_write | ( | const char * | filename, | |
imat | m, | |||
int | srate, | |||
int | depth | |||
) |
Definition at line 1755 of file io.c.
References imat_height(), imat_width(), it_printf(), wav_write_header(), and wav_write_sample().
Referenced by main().
void it_error | ( | char * | fmt, | |
... | ||||
) |
Definition at line 91 of file io.c.
References it_vfprintf().
Referenced by bmat_new_string(), bvec_file_read_bits(), bvec_file_write_bits(), bvec_new_string(), cmat_new_string(), cvec_new_string(), fmat_new_string(), fvec_new_string(), imat_new_string(), it_read_bmat(), it_read_cmat(), it_read_cplx(), it_read_double(), it_read_float(), it_read_fmat(), it_read_imat(), it_read_int(), it_read_mat(), ivec_new_string(), markov_marg_pdf(), mat_new_string(), parser_get_bmat(), parser_get_bmat_verbose(), parser_get_bvec(), parser_get_bvec_verbose(), parser_get_cmat(), parser_get_cmat_verbose(), parser_get_cvec(), parser_get_cvec_verbose(), parser_get_imat(), parser_get_imat_verbose(), parser_get_ivec(), parser_get_ivec_verbose(), parser_get_mat(), parser_get_mat_verbose(), parser_get_vec(), parser_get_vec_verbose(), vec_new_string(), and vlc_read().
void it_fprintf | ( | FILE * | output, | |
char * | fmt, | |||
... | ||||
) |
Definition at line 124 of file io.c.
References it_vfprintf().
Referenced by it_vfprintf(), parser_get_bmat(), parser_get_bmat_verbose(), parser_get_bvec(), parser_get_bvec_verbose(), parser_get_cmat(), parser_get_cmat_verbose(), parser_get_cplx(), parser_get_cplx_verbose(), parser_get_cvec(), parser_get_cvec_verbose(), parser_get_imat(), parser_get_imat_verbose(), parser_get_ivec(), parser_get_ivec_verbose(), parser_get_mat(), parser_get_mat_verbose(), parser_get_vec(), and parser_get_vec_verbose().
void it_printf | ( | char * | fmt, | |
... | ||||
) |
Definition at line 60 of file io.c.
References it_vfprintf().
Referenced by imat_pgm_read(), imat_wav_read(), imat_wav_write(), main(), mat_pgm_read(), mat_wav_read(), mat_wav_write(), pnm_info(), pnm_type(), print_quantizer(), test_quantizer(), and wav_info().
char* it_read_bmat | ( | char * | s, | |
bmat * | m | |||
) |
Definition at line 1019 of file io.c.
References bmat_push_row, bmat_set_height, bvec_delete(), bvec_new(), it_error(), and it_read_bvec().
Referenced by bmat_new_string(), parser_get_bmat(), and parser_get_bmat_verbose().
char* it_read_bvec | ( | char * | s, | |
bvec * | v | |||
) |
Definition at line 794 of file io.c.
References bvec_push, bvec_set_length, it_read_int(), and it_warning().
Referenced by bvec_new_string(), it_read_bmat(), parser_get_bvec(), and parser_get_bvec_verbose().
char* it_read_cmat | ( | char * | s, | |
cmat * | m | |||
) |
Referenced by cmat_new_string(), parser_get_cmat(), and parser_get_cmat_verbose().
char* it_read_cplx | ( | char * | s, | |
cplx * | p_val | |||
) |
Definition at line 545 of file io.c.
References cimag, creal, it_assert, it_error(), and it_warning().
Referenced by it_read_cvec(), main(), parser_get_cplx(), and parser_get_cplx_verbose().
char* it_read_cvec | ( | char * | s, | |
cvec * | v | |||
) |
Definition at line 716 of file io.c.
References cvec_push, cvec_set_length, and it_read_cplx().
Referenced by cvec_new_string(), it_read_cmat(), parser_get_cvec(), and parser_get_cvec_verbose().
char* it_read_double | ( | char * | s, | |
double * | p_val | |||
) |
char* it_read_float | ( | char * | s, | |
float * | p_val | |||
) |
char* it_read_fmat | ( | char * | s, | |
mat * | m | |||
) |
Definition at line 883 of file io.c.
References it_error(), it_read_vec(), mat_push_row, mat_set_height, vec_delete(), and vec_new().
Referenced by fmat_new_string().
char* it_read_fvec | ( | char * | s, | |
vec * | v | |||
) |
Definition at line 677 of file io.c.
References it_read_float(), vec_push, and vec_set_length.
Referenced by fvec_new_string().
char* it_read_imat | ( | char * | s, | |
imat * | m | |||
) |
Definition at line 974 of file io.c.
References imat_push_row, imat_set_height, it_error(), it_read_ivec(), ivec_delete(), and ivec_new().
Referenced by imat_new_string(), parser_get_imat(), and parser_get_imat_verbose().
char* it_read_int | ( | char * | s, | |
int * | p_val | |||
) |
Definition at line 618 of file io.c.
References it_error().
Referenced by it_read_bvec(), and it_read_ivec().
char* it_read_ivec | ( | char * | s, | |
ivec * | v | |||
) |
Definition at line 755 of file io.c.
References it_read_int(), ivec_push, and ivec_set_length.
Referenced by it_read_imat(), ivec_new_string(), main(), parser_get_ivec(), and parser_get_ivec_verbose().
char* it_read_mat | ( | char * | s, | |
mat * | m | |||
) |
Definition at line 837 of file io.c.
References it_error(), it_read_vec(), mat_push_row, mat_set_height, vec_delete(), and vec_new().
Referenced by mat_new_string(), parser_get_mat(), and parser_get_mat_verbose().
char* it_read_vec | ( | char * | s, | |
vec * | v | |||
) |
Definition at line 638 of file io.c.
References it_read_double(), vec_push, and vec_set_length.
Referenced by it_read_fmat(), it_read_mat(), main(), parser_get_vec(), parser_get_vec_verbose(), and vec_new_string().
void it_set_mat_default_fmt | ( | char * | fmt | ) |
void it_set_vec_default_fmt | ( | char * | fmt | ) |
void it_vfprintf | ( | FILE * | output, | |
char * | fmt, | |||
va_list | ap | |||
) |
Definition at line 134 of file io.c.
References bmat_height(), bvec_length(), cimag, cmat_height(), creal, cvec_length(), imat_height(), it_fprintf(), it_printf_mat_default_fmt, it_printf_vec_default_fmt, it_warning(), ivec_length(), Mat_height, mat_height(), Vec_header, Vec_length, and vec_length().
Referenced by it_error(), it_fprintf(), it_printf(), it_vprintf(), and it_warning().
void it_vprintf | ( | char * | fmt, | |
va_list | args | |||
) |
void it_warning | ( | char * | fmt, | |
... | ||||
) |
Definition at line 75 of file io.c.
References it_vfprintf().
Referenced by _parser_add_file(), bmat_get_submatrix(), cmat_inv(), imat_get_submatrix(), it_read_bvec(), it_read_cplx(), it_vfprintf(), ivec_cum_sum(), ivec_median(), ivec_sum(), ivec_sum_between(), mat_get_submatrix(), mat_ls(), mat_lu(), mat_solve_mat(), mat_solve_vec(), parser_get_bmat(), parser_get_bmat_verbose(), parser_get_bvec(), parser_get_bvec_verbose(), parser_get_byte(), parser_get_byte_verbose(), parser_get_cmat(), parser_get_cmat_verbose(), parser_get_cplx(), parser_get_cplx_verbose(), parser_get_cvec(), parser_get_cvec_verbose(), parser_get_double(), parser_get_double_verbose(), parser_get_imat(), parser_get_imat_verbose(), parser_get_int(), parser_get_int_verbose(), parser_get_ivec(), parser_get_ivec_verbose(), parser_get_mat(), parser_get_mat_verbose(), parser_get_string(), parser_get_string_verbose(), parser_get_vec(), parser_get_vec_verbose(), pnm_read_header(), vec_median(), wav_read8(), and wav_read_header().
int ivec_fread | ( | FILE * | stream, | |
ivec | v | |||
) |
void ivec_fwrite | ( | FILE * | stream, | |
ivec | v | |||
) |
ivec ivec_new_fread | ( | FILE * | stream | ) |
ivec ivec_new_string | ( | char * | s | ) |
Definition at line 1086 of file io.c.
References it_error(), it_read_ivec(), and ivec_new_alloc().
Referenced by main().
int ivec_sread | ( | void * | buffer, | |
ivec | v | |||
) |
void mat_fwrite | ( | FILE * | stream, | |
mat | m | |||
) |
mat mat_new_string | ( | char * | s | ) |
mat mat_pgm_read | ( | const char * | filename | ) |
Definition at line 1309 of file io.c.
References _it_wavelet2D_::height, it_printf(), mat_new(), pnm_read_header(), and _it_wavelet2D_::width.
Referenced by main().
int mat_pgm_write | ( | const char * | filename, | |
mat | m | |||
) |
Definition at line 1364 of file io.c.
References mat_height(), mat_width(), and pnm_write_header().
Referenced by main().
mat mat_wav_read | ( | const char * | filename | ) |
Definition at line 1662 of file io.c.
References it_printf(), mat_new(), wav_read_header(), and wav_read_sample().
Referenced by main().
void mat_wav_write | ( | const char * | filename, | |
mat | m, | |||
int | srate, | |||
int | depth | |||
) |
Definition at line 1716 of file io.c.
References it_printf(), mat_height(), mat_width(), min(), wav_write_header(), and wav_write_sample().
Referenced by main().
int pnm_info | ( | const char * | filename, | |
char * | p_pnm_type, | |||
int * | p_width, | |||
int * | p_height, | |||
int * | p_max_val, | |||
char * | comments, | |||
int | length | |||
) |
Definition at line 1292 of file io.c.
References it_printf(), and pnm_read_header().
Referenced by main().
char pnm_type | ( | const char * | filename | ) |
Definition at line 1274 of file io.c.
References _it_wavelet2D_::height, it_printf(), pnm_read_header(), pnm_type(), and _it_wavelet2D_::width.
Referenced by main(), and pnm_type().
int vec_fread | ( | FILE * | stream, | |
vec | v | |||
) |
void vec_fwrite | ( | FILE * | stream, | |
vec | v | |||
) |
vec vec_new_string | ( | char * | s | ) |
Definition at line 1064 of file io.c.
References it_error(), it_read_vec(), and vec_new_alloc().
Referenced by main().
int vec_sread | ( | void * | buffer, | |
vec | v | |||
) |
int wav_info | ( | const char * | filename, | |
int * | p_channels, | |||
int * | p_srate, | |||
int * | p_depth, | |||
int * | p_length | |||
) |
Definition at line 1646 of file io.c.
References it_printf(), and wav_read_header().
Referenced by main().
|
|