#include <eh_utils.h>
Go to the source code of this file.
Functions | |
Eh_data_record | eh_data_record_new () |
Eh_data_record | eh_data_record_destroy (Eh_data_record p) |
void | eh_data_record_print (Eh_data_record p, char *rec_name, char *delim, gboolean row_major, gboolean with_header, FILE *fp) |
int | eh_data_record_size (Eh_data_record p, int dim) |
Eh_symbol_table | eh_data_record_table (Eh_data_record p) |
double * | eh_data_record_row (Eh_data_record p, gssize row) |
double * | eh_data_record_dup_row (Eh_data_record p, gssize row) |
void | eh_data_record_set_row (Eh_data_record p, int row, double *a) |
void | eh_data_record_add_row (Eh_data_record p, double *a) |
void | eh_data_record_add_column (Eh_data_record p, double *a) |
void | eh_data_record_add_label (Eh_data_record p, char *label, char *value) |
void | eh_data_record_interpolate_rows (Eh_data_record p, gssize row, double *y, gssize new_len) |
Eh_data_record * | eh_data_record_scan_file (const char *file, const char *delim, int fast_dim, gboolean with_header, GError **error) |
Eh_data_record | eh_data_record_scan (GScanner *s, const char *delim, int fast_dim, gboolean with_header) |
void eh_data_record_add_column | ( | Eh_data_record | p, | |
double * | a | |||
) |
void eh_data_record_add_label | ( | Eh_data_record | p, | |
char * | label, | |||
char * | value | |||
) |
Definition at line 110 of file eh_data_record.c.
References eh_symbol_table_insert().
Referenced by main().
void eh_data_record_add_row | ( | Eh_data_record | p, | |
double * | a | |||
) |
Definition at line 100 of file eh_data_record.c.
References eh_grid_add_row().
Referenced by main().
Eh_data_record eh_data_record_destroy | ( | Eh_data_record | p | ) |
Definition at line 21 of file eh_data_record.c.
References eh_free, eh_grid_destroy(), and eh_symbol_table_destroy().
Referenced by eh_close_data_file(), eh_data_record_scan(), main(), and sed_get_floor().
double* eh_data_record_dup_row | ( | Eh_data_record | p, | |
gssize | row | |||
) |
Definition at line 88 of file eh_data_record.c.
References eh_data_record_row(), and eh_data_record_size().
Referenced by main().
void eh_data_record_interpolate_rows | ( | Eh_data_record | p, | |
gssize | row, | |||
double * | y, | |||
gssize | new_len | |||
) |
Definition at line 115 of file eh_data_record.c.
References eh_data_record_row(), eh_grid_destroy(), eh_grid_n_x(), eh_grid_n_y(), eh_grid_new, eh_grid_row(), eh_require, and interpolate().
Eh_data_record eh_data_record_new | ( | void | ) |
Definition at line 9 of file eh_data_record.c.
References eh_grid_new, eh_symbol_table_new(), and NEW_OBJECT.
Referenced by eh_data_record_scan(), and main().
void eh_data_record_print | ( | Eh_data_record | p, | |
char * | rec_name, | |||
char * | delim, | |||
gboolean | row_major, | |||
gboolean | with_header, | |||
FILE * | fp | |||
) |
Definition at line 33 of file eh_data_record.c.
References eh_dbl_grid_fprintf(), eh_free, eh_grid_transpose(), and eh_symbol_table_print_aligned().
Referenced by main().
double* eh_data_record_row | ( | Eh_data_record | p, | |
gssize | row | |||
) |
Definition at line 80 of file eh_data_record.c.
References eh_grid_n_x(), and eh_grid_row().
Referenced by eh_data_record_dup_row(), eh_data_record_interpolate_rows(), eh_data_record_set_row(), and sed_get_floor().
Eh_data_record eh_data_record_scan | ( | GScanner * | s, | |
const char * | delim, | |||
int | fast_dim, | |||
gboolean | with_header | |||
) |
Definition at line 175 of file eh_data_record.c.
References eh_data_record_destroy(), eh_data_record_new(), EH_FAST_DIM_COL, eh_free, eh_grid_add_row(), eh_grid_resize(), eh_grid_transpose(), eh_scan_ascii_data_line_dbl(), eh_scan_next_record(), and eh_seek_record_start().
Referenced by eh_data_record_scan_file().
Eh_data_record* eh_data_record_scan_file | ( | const char * | file, | |
const char * | delim, | |||
int | fast_dim, | |||
gboolean | with_header, | |||
GError ** | error | |||
) |
Definition at line 142 of file eh_data_record.c.
References eh_close_scanner(), eh_data_record_scan(), eh_open_scanner(), eh_renew, and eh_return_val_if_fail.
Referenced by eh_open_data_file(), main(), and sed_get_floor().
void eh_data_record_set_row | ( | Eh_data_record | p, | |
int | row, | |||
double * | a | |||
) |
Definition at line 94 of file eh_data_record.c.
References eh_data_record_row(), eh_grid_el_size(), eh_grid_n_x(), and eh_grid_n_y().
int eh_data_record_size | ( | Eh_data_record | p, | |
int | dim | |||
) |
Definition at line 62 of file eh_data_record.c.
References eh_grid_n_x(), and eh_grid_n_y().
Referenced by eh_data_record_dup_row(), and sed_get_floor().
Eh_symbol_table eh_data_record_table | ( | Eh_data_record | p | ) |
Definition at line 75 of file eh_data_record.c.