projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b1fff7
)
src/lvec.{c,h}: add lvec_print
author
Paul Brossier
<piem@piem.org>
Thu, 17 Sep 2009 05:30:50 +0000
(07:30 +0200)
committer
Paul Brossier
<piem@piem.org>
Thu, 17 Sep 2009 05:30:50 +0000
(07:30 +0200)
src/lvec.c
patch
|
blob
|
history
src/lvec.h
patch
|
blob
|
history
diff --git
a/src/lvec.c
b/src/lvec.c
index 086e3082fccee0ed7f84d26e15fb0f58a97c660a..7db17dbb87e40ed4f247db62c53670bbfa75762d 100644
(file)
--- 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 d03af876e327d21a70322e1145496e8bfa1cf25e..e52fed819199df413abbce9588bfe4527a11d42a 100644
(file)
--- 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