From: Paul Brossier Date: Tue, 29 Jan 2019 02:30:59 +0000 (+0100) Subject: [fmat] workaround to allow printing 'fake' fmat created from tensors X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=9498c881f2bb75dc1d7f4427fef5801ab719bd20;p=aubio.git [fmat] workaround to allow printing 'fake' fmat created from tensors --- diff --git a/src/fmat.c b/src/fmat.c index 62c48c50..dd4060f8 100644 --- a/src/fmat.c +++ b/src/fmat.c @@ -77,7 +77,7 @@ void fmat_print(const fmat_t *s) { uint_t i,j; for (i=0; i< s->height; i++) { for (j=0; j< s->length; j++) { - AUBIO_MSG(AUBIO_SMPL_FMT " ", s->data[i][j]); + AUBIO_MSG(AUBIO_SMPL_FMT " ", s->data[0][i * s->length + j]); } AUBIO_MSG("\n"); }