include_atlas.hpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au)
  2. // Copyright 2008-2016 National ICT Australia (NICTA)
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // ------------------------------------------------------------------------
  15. #if defined(ARMA_USE_ATLAS)
  16. #if !defined(ARMA_ATLAS_INCLUDE_DIR)
  17. extern "C"
  18. {
  19. #include <cblas.h>
  20. #include <clapack.h>
  21. }
  22. #else
  23. #define ARMA_STR1(x) x
  24. #define ARMA_STR2(x) ARMA_STR1(x)
  25. #define ARMA_CBLAS ARMA_STR2(ARMA_ATLAS_INCLUDE_DIR)ARMA_STR2(cblas.h)
  26. #define ARMA_CLAPACK ARMA_STR2(ARMA_ATLAS_INCLUDE_DIR)ARMA_STR2(clapack.h)
  27. extern "C"
  28. {
  29. #include ARMA_INCFILE_WRAP(ARMA_CBLAS)
  30. #include ARMA_INCFILE_WRAP(ARMA_CLAPACK)
  31. }
  32. #undef ARMA_STR1
  33. #undef ARMA_STR2
  34. #undef ARMA_CBLAS
  35. #undef ARMA_CLAPACK
  36. #endif
  37. #endif