op_trimat_bones.hpp 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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_trimat
  16. //! @{
  17. class op_trimat
  18. : public traits_op_default
  19. {
  20. public:
  21. template<typename eT>
  22. inline static void fill_zeros(Mat<eT>& A, const bool upper);
  23. //
  24. template<typename T1>
  25. inline static void apply(Mat<typename T1::elem_type>& out, const Op<T1,op_trimat>& in);
  26. template<typename T1>
  27. inline static void apply(Mat<typename T1::elem_type>& out, const Op<Op<T1,op_htrans>, op_trimat>& in);
  28. //
  29. template<typename eT>
  30. inline static void apply_htrans(Mat<eT>& out, const Mat<eT>& A, const bool upper, const typename arma_not_cx<eT>::result* junk = 0);
  31. template<typename eT>
  32. inline static void apply_htrans(Mat<eT>& out, const Mat<eT>& A, const bool upper, const typename arma_cx_only<eT>::result* junk = 0);
  33. };
  34. class op_trimatu_ext
  35. : public traits_op_default
  36. {
  37. public:
  38. template<typename T1>
  39. inline static void apply(Mat<typename T1::elem_type>& out, const Op<T1,op_trimatu_ext>& in);
  40. template<typename eT>
  41. inline static void fill_zeros(Mat<eT>& A, const uword row_offset, const uword col_offset);
  42. };
  43. class op_trimatl_ext
  44. : public traits_op_default
  45. {
  46. public:
  47. template<typename T1>
  48. inline static void apply(Mat<typename T1::elem_type>& out, const Op<T1,op_trimatl_ext>& in);
  49. template<typename eT>
  50. inline static void fill_zeros(Mat<eT>& A, const uword row_offset, const uword col_offset);
  51. };
  52. //! @}