21 #ifndef _AUBIO__FMAT_H
22 #define _AUBIO__FMAT_H
void fmat_set_sample(fmat_t *s, smpl_t data, uint_t channel, uint_t position)
write sample value in a buffer
void fmat_rev(fmat_t *s)
revert order of vector elements
void fmat_get_channel(fmat_t *s, uint_t channel, fvec_t *output)
read channel vector from a buffer
float smpl_t
short sample format (32 or 64 bits)
void fmat_print(fmat_t *s)
print out fmat data
void del_fmat(fmat_t *s)
fmat_t buffer deletion function
void fmat_copy(fmat_t *s, fmat_t *t)
make a copy of a matrix
uint_t height
height of matrix
void fmat_ones(fmat_t *s)
set all elements to ones
smpl_t ** fmat_get_data(fmat_t *s)
read data from a buffer
void fmat_zeros(fmat_t *s)
set all elements to zero
smpl_t * fmat_get_channel_data(fmat_t *s, uint_t channel)
get vector buffer from an fmat data
void fmat_weight(fmat_t *s, fmat_t *weight)
apply weight to vector
fmat_t * new_fmat(uint_t height, uint_t length)
fmat_t buffer creation function
unsigned int uint_t
unsigned integer
smpl_t fmat_get_sample(fmat_t *s, uint_t channel, uint_t position)
read sample value in a buffer
void fmat_set(fmat_t *s, smpl_t val)
set all elements to a given value
smpl_t ** data
data array of size [length] * [height]
uint_t length
length of matrix