|
aubio 0.4.9
|
Vector of real-valued data in double precision. More...
Go to the source code of this file.
Data Structures | |
| struct | lvec_t |
| Buffer for real data in double precision. More... | |
Functions | |
| lvec_t * | new_lvec (uint_t length) |
| lvec_t buffer creation function | |
| void | del_lvec (lvec_t *s) |
| lvec_t buffer deletion function | |
| lsmp_t | lvec_get_sample (lvec_t *s, uint_t position) |
| read sample value in a buffer | |
| void | lvec_set_sample (lvec_t *s, lsmp_t data, uint_t position) |
| write sample value in a buffer | |
| lsmp_t * | lvec_get_data (const lvec_t *s) |
| read data from a buffer | |
| void | lvec_print (const lvec_t *s) |
| print out lvec data | |
| void | lvec_set_all (lvec_t *s, smpl_t val) |
| set all elements to a given value | |
| void | lvec_zeros (lvec_t *s) |
| set all elements to zero | |
| void | lvec_ones (lvec_t *s) |
| set all elements to ones | |
Vector of real-valued data in double precision.
This file specifies the lvec_t buffer type, which is used in some places in aubio to store a vector of lsmp_t.
Note: the lvec_t data type is required in some algorithms such as IIR filters (see temporal/filter.h).
Definition in file lvec.h.
| void del_lvec | ( | lvec_t * | s | ) |
lvec_t buffer deletion function
| s | buffer to delete as returned by new_lvec() |
read sample value in a buffer
| s | vector to read from |
| position | sample position to read from |
| void lvec_ones | ( | lvec_t * | s | ) |
| void lvec_print | ( | const lvec_t * | s | ) |
set all elements to a given value
| s | vector to modify |
| val | value to set elements to |
write sample value in a buffer
| s | vector to write to |
| data | value to write in s->data[position] |
| position | sample position to write to |
| void lvec_zeros | ( | lvec_t * | s | ) |
lvec_t buffer creation function
| length | the length of the buffer to create |