void fmat_set_sample(fmat_t *s, smpl_t data, uint_t channel, uint_t position)
write sample value in a buffer
void fmat_vecmul(const fmat_t *s, const fvec_t *scale, fvec_t *output)
compute the product of a matrix by a vector
void fmat_rev(fmat_t *s)
revert order of vector elements
smpl_t ** fmat_get_data(const fmat_t *s)
read data from a buffer
float smpl_t
short sample format (32 or 64 bits)
smpl_t fmat_get_sample(const fmat_t *s, uint_t channel, uint_t position)
read sample value in a buffer
void del_fmat(fmat_t *s)
fmat_t buffer deletion function
uint_t height
height of matrix
void fmat_ones(fmat_t *s)
set all elements to ones
smpl_t * fmat_get_channel_data(const fmat_t *s, uint_t channel)
get vector buffer from an fmat data
void fmat_zeros(fmat_t *s)
set all elements to zero
void fmat_get_channel(const fmat_t *s, uint_t channel, fvec_t *output)
read channel vector from a buffer
fmat_t * new_fmat(uint_t height, uint_t length)
fmat_t buffer creation function
unsigned int uint_t
unsigned integer
void fmat_print(const fmat_t *s)
print out fmat data
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]
void fmat_weight(fmat_t *s, const fmat_t *weight)
apply weight to vector
uint_t length
length of matrix
void fmat_copy(const fmat_t *s, fmat_t *t)
make a copy of a matrix