float sa_get_matrix_flt(sa_matrix_flt *m, int row, int cols)
void sa_init_matrix_flt(sa_matrix_flt *m)
struct sa_matrix_int sa_matrix_int
int sa_deserialize_matrix_flt(sa_matrix_flt *m, const char *buf, size_t len)
void sa_init_matrix_int(sa_matrix_int *m)
Zeros out the matrix.
char * sa_serialize_matrix_flt(sa_matrix_flt *m, size_t *len)
sa_matrix_int * sa_create_matrix_int(int rows, int cols)
Allocates and initializes the data structure.
float sa_set_matrix_flt(sa_matrix_flt *m, int row, int col, float v)
int sa_get_matrix_int(sa_matrix_int *m, int row, int cols)
Gets the value of the time series row.
int sa_deserialize_matrix_int(sa_matrix_int *m, const char *buf, size_t len)
Restores the internal state from the serialized output.
sa_matrix_flt * sa_create_matrix_flt(int rows, int cols)
int sa_add_matrix_int(sa_matrix_int *m, int row, int col, int v)
Adds the specified value to the matrix.
int sa_set_matrix_int(sa_matrix_int *m, int row, int col, int v)
Sets the time series row to the specified value.
float sa_add_matrix_flt(sa_matrix_flt *m, int row, int col, float v)
void sa_init_matrix_row_flt(sa_matrix_flt *m, int row)
char * sa_serialize_matrix_int(sa_matrix_int *m, size_t *len)
Serialize the internal state to a buffer.
void sa_init_matrix_row_int(sa_matrix_int *m, int row)
Zeros out the specified matrix row.
struct sa_matrix_flt sa_matrix_flt
void sa_destroy_matrix_flt(sa_matrix_flt *m)
void sa_destroy_matrix_int(sa_matrix_int *m)
Free the associated memory.