ref: 32f5a0144bc8580b1d8337276294df8d55c5ef22
parent: 54f2a70ad9036deb5799b912b0f0ed083db953f2
author: Paul Brossier <piem@piem.org>
date: Fri Sep 11 20:00:54 EDT 2009
src/fvec.{c,h}: add simple fvec_print function
--- a/src/fvec.c
+++ b/src/fvec.c
@@ -61,3 +61,12 @@
return s->data;
}
+void fvec_print(fvec_t *s) {
+ uint_t i,j;
+ for (i=0; i< s->channels; i++) {
+ for (j=0; j< s->length; j++) {
+ AUBIO_MSG("%f ", s->data[i][j]);
+ }
+ AUBIO_MSG("\n");
+ }
+}
--- a/src/fvec.h
+++ b/src/fvec.h
@@ -113,6 +113,13 @@
*/
smpl_t ** fvec_get_data(fvec_t *s);
+/** print out fvec data
+
+ \param s vector to print out
+
+*/
+void fvec_print(fvec_t *s);
+
#ifdef __cplusplus
}
#endif