- Timestamp:
- Jan 29, 2019, 3:30:23 AM (6 years ago)
- Branches:
- feature/crepe_org
- Children:
- 9498c88
- Parents:
- 64959c4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/fmat.c
r64959c4 ra9a8c04 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.