Changeset 3fa8d95


Ignore:
Timestamp:
Dec 29, 2021, 5:51:47 PM (3 weeks ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/cnn, feature/crepe
Children:
70afae1
Parents:
bacf0c6
git-author:
Paul Brossier <piem@piem.org> (01/07/19 22:51:34)
git-committer:
Paul Brossier <piem@piem.org> (12/29/21 17:51:47)
Message:

[aubio_priv] add AUBIO_ASSERT_EQUAL_SHAPE helper

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/aubio_priv.h

    rbacf0c6 r3fa8d95  
    413413#define AUBIO_GOTO_FAILURE(x) if (!(x)) goto failure
    414414
     415#define AUBIO_ASSERT_EQUAL_SHAPE(t1, t2) { \
     416    AUBIO_ASSERT(t1 && t2); \
     417    AUBIO_ASSERT(t1->ndim == t2->ndim); \
     418    uint_t nn; \
     419    for (nn = 0; nn < t1->ndim; nn++) \
     420      AUBIO_ASSERT(t1->shape[nn] == t2->shape[nn]); \
     421    }
     422
    415423#endif /* AUBIO_PRIV_H */
Note: See TracChangeset for help on using the changeset viewer.