Changeset 668dfdd
- Timestamp:
- Dec 29, 2021, 5:52:02 PM (3 years ago)
- Branches:
- feature/crepe
- Children:
- 75e0b81
- Parents:
- 5a4b6c5
- git-author:
- Paul Brossier <piem@piem.org> (01/29/19 03:30:23)
- git-committer:
- Paul Brossier <piem@piem.org> (12/29/21 17:52:02)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/fmat.c
r5a4b6c5 r668dfdd 25 25 fmat_t * s; 26 26 uint_t i; 27 if ((sint_t) length <= 0 || (sint_t)height<= 0 ) {27 if ((sint_t)height <= 0 || (sint_t)length <= 0 ) { 28 28 return NULL; 29 29 } … … 31 31 s->height = height; 32 32 s->length = length; 33 // array of row pointers 33 34 s->data = AUBIO_ARRAY(smpl_t*,s->height); 34 s->data[0] = AUBIO_ARRAY(smpl_t, s->length * s->height); 35 // first row store the full height * length buffer 36 s->data[0] = AUBIO_ARRAY(smpl_t, s->height * s->length); 35 37 for (i=1; i< s->height; i++) { 36 38 s->data[i] = s->data[0] + i * s->length;
Note: See TracChangeset
for help on using the changeset viewer.