You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.3 KiB

8 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /** @file mathop_avx.h
  2. ** @brief mathop for avx
  3. ** @author Andrea Vedaldi
  4. **/
  5. /*
  6. Copyright (C) 2007-12 Andrea Vedaldi and Brian Fulkerson.
  7. All rights reserved.
  8. This file is part of the VLFeat library and is made available under
  9. the terms of the BSD license (see the COPYING file).
  10. */
  11. /* ---------------------------------------------------------------- */
  12. #ifndef VL_MATHOP_AVX_H_INSTANTIATING
  13. #ifndef VL_MATHOP_AVX_H
  14. #define VL_MATHOP_AVX_H
  15. #undef FLT
  16. #define FLT VL_TYPE_DOUBLE
  17. #define VL_MATHOP_AVX_H_INSTANTIATING
  18. #include "mathop_avx.h"
  19. #undef FLT
  20. #define FLT VL_TYPE_FLOAT
  21. #define VL_MATHOP_AVX_H_INSTANTIATING
  22. #include "mathop_avx.h"
  23. /* VL_MATHOP_AVX_H */
  24. #endif
  25. /* ---------------------------------------------------------------- */
  26. /* VL_MATHOP_AVX_H_INSTANTIATING */
  27. #else
  28. #ifndef VL_DISABLE_AVX
  29. #include "generic.h"
  30. #include "float.th"
  31. VL_EXPORT T
  32. VL_XCAT(_vl_distance_mahalanobis_sq_avx_, SFX)
  33. (vl_size dimension, T const * X, T const * MU, T const * S);
  34. VL_EXPORT T
  35. VL_XCAT(_vl_distance_l2_avx_, SFX)
  36. (vl_size dimension, T const * X, T const * Y);
  37. VL_EXPORT void
  38. VL_XCAT(_vl_weighted_sigma_avx_, SFX)
  39. (vl_size dimension, T * S, T const * X, T const * Y, T const W);
  40. VL_EXPORT void
  41. VL_XCAT(_vl_weighted_mean_avx_, SFX)
  42. (vl_size dimension, T * MU, T const * X, T const W);
  43. /* ! VL_DISABLE_AVX */
  44. #endif
  45. #undef VL_MATHOP_AVX_H_INSTANTIATING
  46. #endif