Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/fvec.c

    r7166ef8 r1dd95c7  
    2828#define aubio_vDSP_vmul       vDSP_vmul
    2929#define aubio_vDSP_vfill      vDSP_vfill
    30 #define aubio_catlas_set      catlas_sset
    3130#else /* HAVE_AUBIO_DOUBLE */
    3231#define aubio_vDSP_mmov       vDSP_mmovD
    3332#define aubio_vDSP_vmul       vDSP_vmulD
    3433#define aubio_vDSP_vfill      vDSP_vfillD
    35 #define aubio_catlas_set      catlas_dset
    3634#endif /* HAVE_AUBIO_DOUBLE */
    3735#endif
     
    8280  }
    8381#else
    84   //aubio_catlas_set(s->length, val, s->data, 1);
    8582  aubio_vDSP_vfill(&val, s->data, 1, s->length);
    8683#endif
     
    122119}
    123120
    124 void fvec_weighted_copy(fvec_t *in, fvec_t *weight, fvec_t *out) {
    125 #ifndef HAVE_ACCELERATE
    126   uint_t j;
    127   uint_t length = MIN(s->length, weight->length);
    128   for (j=0; j< length; j++) {
    129     out->data[j] = in->data[j] * weight->data[j];
    130   }
    131 #else
    132   aubio_vDSP_vmul(in->data, 1, weight->data, 1, out->data, 1, out->length);
    133 #endif /* HAVE_ACCELERATE */
    134 }
    135 
    136121void fvec_copy(fvec_t *s, fvec_t *t) {
    137122  if (s->length != t->length) {
Note: See TracChangeset for help on using the changeset viewer.