Mercurial > hg > segmenter-vamp-plugin
comparison armadillo-2.4.4/include/armadillo_bits/op_find_bones.hpp @ 0:8b6102e2a9b0
Armadillo Library
author | maxzanoni76 <max.zanoni@eecs.qmul.ac.uk> |
---|---|
date | Wed, 11 Apr 2012 09:27:06 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:8b6102e2a9b0 |
---|---|
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 | |
16 //! \addtogroup op_find | |
17 //! @{ | |
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, | |
30 const Base<typename T1::elem_type, T1>& X | |
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, | |
58 const mtGlue<uword, T1, T2, glue_type>& X, | |
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, | |
69 const mtGlue<uword, T1, T2, glue_type>& X, | |
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 | |
81 //! @} |