projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54f2a70
)
src/fvec.{c,h}: add simple fvec_print function
author
Paul Brossier
<piem@piem.org>
Fri, 11 Sep 2009 22:00:54 +0000
(
00:00
+0200)
committer
Paul Brossier
<piem@piem.org>
Fri, 11 Sep 2009 22:00:54 +0000
(
00:00
+0200)
src/fvec.c
patch
|
blob
|
history
src/fvec.h
patch
|
blob
|
history
diff --git
a/src/fvec.c
b/src/fvec.c
index 4b094f9cf040b9090fa3a37a615e16b2d1043418..49eda085453945800d499a78eb6a736d1ebc3361 100644
(file)
--- a/
src/fvec.c
+++ b/
src/fvec.c
@@
-61,3
+61,12
@@
smpl_t ** fvec_get_data(fvec_t *s) {
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");
+ }
+}
diff --git
a/src/fvec.h
b/src/fvec.h
index 1d78852c1111dd24ce1a1274a654725e34cb64ac..c3f99c141ea944d03d08ad483ab932bb569f1002 100644
(file)
--- a/
src/fvec.h
+++ b/
src/fvec.h
@@
-113,6
+113,13
@@
void fvec_put_channel(fvec_t *s, smpl_t * data, uint_t channel);
*/
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