op_find_bones.hpp
Go to the documentation of this file.
1 // Copyright (C) 2010 NICTA (www.nicta.com.au)
2 // Copyright (C) 2010 Conrad Sanderson
3 // Copyright (C) 2010 Dimitrios Bouzas
4 //
5 // This file is part of the Armadillo C++ library.
6 // It is provided without any warranty of fitness
7 // for any purpose. You can redistribute this file
8 // and/or modify it under the terms of the GNU
9 // Lesser General Public License (LGPL) as published
10 // by the Free Software Foundation, either version 3
11 // of the License or (at your option) any later version.
12 // (see http://www.opensource.org/licenses for more info)
13 
14 
15 
18 
19 
20 
21 class op_find
22  {
23  public:
24 
25  template<typename T1>
26  inline static uword
27  helper
28  (
29  Mat<uword>& indices,
31  );
32 
33  template<typename T1, typename op_type>
34  inline static uword
35  helper
36  (
37  Mat<uword>& indices,
38  const mtOp<uword, T1, op_type>& X,
39  const typename arma_op_rel_only<op_type>::result junk1 = 0,
40  const typename arma_not_cx<typename T1::elem_type>::result junk2 = 0
41  );
42 
43  template<typename T1, typename op_type>
44  inline static uword
45  helper
46  (
47  Mat<uword>& indices,
48  const mtOp<uword, T1, op_type>& X,
49  const typename arma_op_rel_only<op_type>::result junk1 = 0,
50  const typename arma_cx_only<typename T1::elem_type>::result junk2 = 0
51  );
52 
53  template<typename T1, typename T2, typename glue_type>
54  inline static uword
55  helper
56  (
57  Mat<uword>& indices,
59  const typename arma_glue_rel_only<glue_type>::result junk1 = 0,
60  const typename arma_not_cx<typename T1::elem_type>::result junk2 = 0,
61  const typename arma_not_cx<typename T2::elem_type>::result junk3 = 0
62  );
63 
64  template<typename T1, typename T2, typename glue_type>
65  inline static uword
66  helper
67  (
68  Mat<uword>& indices,
70  const typename arma_glue_rel_only<glue_type>::result junk1 = 0,
71  const typename arma_cx_only<typename T1::elem_type>::result junk2 = 0,
72  const typename arma_cx_only<typename T2::elem_type>::result junk3 = 0
73  );
74 
75  template<typename T1>
76  inline static void apply(Mat<uword>& out, const mtOp<uword, T1, op_find>& X);
77  };
78 
79 
80 
static uword helper(Mat< uword > &indices, const Base< typename T1::elem_type, T1 > &X)
static void apply(Mat< uword > &out, const mtOp< uword, T1, op_find > &X)
u32 uword
Definition: typedef.hpp:85
Dense matrix class.


armadillo_matrix
Author(s):
autogenerated on Fri Apr 16 2021 02:31:58