op_all_bones.hpp 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. //! \addtogroup op_all
  16. //! @{
  17. class op_all
  18. : public traits_op_xvec
  19. {
  20. public:
  21. template<typename T1>
  22. static inline bool
  23. all_vec_helper(const Base<typename T1::elem_type, T1>& X);
  24. template<typename eT>
  25. static inline bool
  26. all_vec_helper(const subview<eT>& X);
  27. template<typename T1>
  28. static inline bool
  29. all_vec_helper(const Op<T1, op_vectorise_col>& X);
  30. template<typename T1, typename op_type>
  31. static inline bool
  32. all_vec_helper
  33. (
  34. const mtOp<uword, T1, op_type>& X,
  35. const typename arma_op_rel_only<op_type>::result* junk1 = 0,
  36. const typename arma_not_cx<typename T1::elem_type>::result* junk2 = 0
  37. );
  38. template<typename T1, typename T2, typename glue_type>
  39. static inline bool
  40. all_vec_helper
  41. (
  42. const mtGlue<uword, T1, T2, glue_type>& X,
  43. const typename arma_glue_rel_only<glue_type>::result* junk1 = 0,
  44. const typename arma_not_cx<typename T1::elem_type>::result* junk2 = 0,
  45. const typename arma_not_cx<typename T2::elem_type>::result* junk3 = 0
  46. );
  47. template<typename T1>
  48. static inline bool all_vec(T1& X);
  49. template<typename T1>
  50. static inline void apply_helper(Mat<uword>& out, const Proxy<T1>& P, const uword dim);
  51. template<typename T1>
  52. static inline void apply(Mat<uword>& out, const mtOp<uword, T1, op_all>& X);
  53. };
  54. //! @}