#include <prim_type.h>
#include <cmd_ln.h>
#include <mmio.h>
Go to the source code of this file.
Data Structures | |
| struct | gau_file_s |
Defines | |
| #define | gau_file_set_flag(g, f) ((g)->flags |= (f)) |
| #define | gau_file_clear_flag(g, f) ((g)->flags &= ~(f)) |
| #define | gau_file_get_flag(g, f) ((g)->flags & (f)) |
Typedefs | |
| typedef struct gau_file_s | gau_file_t |
Enumerations | |
| enum | gau_fmt_e { GAU_FLOAT32 = 0, GAU_FLOAT64 = 1, GAU_INT16 = 2, GAU_INT32 = 3, GAU_UINT8 = 4, GAU_UINT16 = 5, GAU_UINT32 = 6 } |
| Gaussian parameter formats. | |
| enum | gau_file_flags_e { GAU_FILE_MMAP = (1<<0), GAU_FILE_PRECOMP = (1<<1), GAU_FILE_TRANSPOSED = (1<<2), GAU_FILE_NEGATIVE = (1<<3) } |
| Values for gau_file_t->flags. More... | |
| enum | gau_file_dimension_e { GAU_FILE_MEAN = 4, GAU_FILE_VAR = 4, GAU_FILE_NORM = 3, GAU_FILE_MIXW = 3 } |
| Values for ndim in gau_file_read. | |
Functions | |
| gau_file_t * | gau_file_read (cmd_ln_t *config, const char *file_name, int ndim) |
| Read a Gaussian parameter file. | |
| int | gau_file_write (gau_file_t *gau, const char *file_name, int byteswap) |
| Write a Gaussian parameter file. | |
| void | gau_file_free (gau_file_t *gau) |
| Release a Gaussian parameter file and associated memory. | |
| size_t | gau_file_get_shape (gau_file_t *gau, int *out_n_gau, int *out_n_feat, int *out_n_density, const int **out_veclen) |
| Retrieve the dimensionality of a Gaussian parameter file and number of elements. | |
| void | gau_file_get_size (gau_file_t *gau, size_t *out_nelem, size_t *out_width) |
| Retrieve the number of elements in a Gaussian parameter file and their size. | |
| int | gau_file_compatible (gau_file_t *a, gau_file_t *b) |
| Verify that two Gaussian parameter files have the same shape. | |
| void * | gau_file_get_data (gau_file_t *gau) |
| Get the raw data pointer for a Gaussian parameter file. | |
| void | gau_file_dequantize_float32 (gau_file_t *file, float32 *outmem, float32 outscale) |
| Expand quantized data to linear float32. | |
| void | gau_file_dequantize_int32 (gau_file_t *file, int32 *outmem, float32 outscale) |
| Expand quantized data to linear int32. | |
| void | gau_file_dequantize_log (gau_file_t *file, int32 *outptr, float32 outscale, float32 logbase) |
| Expand quantized data to logarithmic int32. | |
This is currently a private interface, as it is subject to change.
Definition in file gau_file.h.
| enum gau_file_flags_e |
Values for gau_file_t->flags.
Definition at line 90 of file gau_file.h.
| void* gau_file_get_data | ( | gau_file_t * | gau | ) |
Get the raw data pointer for a Gaussian parameter file.
Do not assume that this pointer is writable!
1.5.5