From: Paul Brossier Date: Thu, 17 Sep 2009 05:30:50 +0000 (+0200) Subject: src/lvec.{c,h}: add lvec_print X-Git-Tag: bzr2git~344 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=79a01c587943dc220a45d6fedd20ab3064ed39f7;p=aubio.git src/lvec.{c,h}: add lvec_print --- diff --git a/src/lvec.c b/src/lvec.c index 086e3082..7db17dbb 100644 --- a/src/lvec.c +++ b/src/lvec.c @@ -61,3 +61,15 @@ lsmp_t ** lvec_get_data(lvec_t *s) { return s->data; } +/* helper functions */ + +void lvec_print(lvec_t *s) { + uint_t i,j; + for (i=0; i< s->channels; i++) { + for (j=0; j< s->length; j++) { + AUBIO_MSG(AUBIO_LSMP_FMT " ", s->data[i][j]); + } + AUBIO_MSG("\n"); + } +} + diff --git a/src/lvec.h b/src/lvec.h index d03af876..e52fed81 100644 --- a/src/lvec.h +++ b/src/lvec.h @@ -113,6 +113,13 @@ void lvec_put_channel(lvec_t *s, lsmp_t * data, uint_t channel); */ lsmp_t ** lvec_get_data(lvec_t *s); +/** print out lvec data + + \param s vector to print out + +*/ +void lvec_print(lvec_t *s); + #ifdef __cplusplus } #endif