Mercurial > hg > segmenter-vamp-plugin
comparison armadillo-3.900.4/include/armadillo_bits/cond_rel_meat.hpp @ 49:1ec0e2823891
Switch to using subrepo copies of qm-dsp, nnls-chroma, vamp-plugin-sdk; update Armadillo version; assume build without external BLAS/LAPACK
author | Chris Cannam |
---|---|
date | Thu, 13 Jun 2013 10:25:24 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
48:69251e11a913 | 49:1ec0e2823891 |
---|---|
1 // Copyright (C) 2012 NICTA (www.nicta.com.au) | |
2 // Copyright (C) 2012 Conrad Sanderson | |
3 // | |
4 // This Source Code Form is subject to the terms of the Mozilla Public | |
5 // License, v. 2.0. If a copy of the MPL was not distributed with this | |
6 // file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
7 | |
8 | |
9 //! \addtogroup cond_rel | |
10 //! @{ | |
11 | |
12 | |
13 | |
14 template<> | |
15 template<typename eT> | |
16 arma_inline | |
17 bool | |
18 cond_rel<true>::lt(const eT A, const eT B) | |
19 { | |
20 return (A < B); | |
21 } | |
22 | |
23 | |
24 | |
25 template<> | |
26 template<typename eT> | |
27 arma_inline | |
28 bool | |
29 cond_rel<false>::lt(const eT, const eT) | |
30 { | |
31 return false; | |
32 } | |
33 | |
34 | |
35 | |
36 template<> | |
37 template<typename eT> | |
38 arma_inline | |
39 bool | |
40 cond_rel<true>::gt(const eT A, const eT B) | |
41 { | |
42 return (A > B); | |
43 } | |
44 | |
45 | |
46 | |
47 template<> | |
48 template<typename eT> | |
49 arma_inline | |
50 bool | |
51 cond_rel<false>::gt(const eT, const eT) | |
52 { | |
53 return false; | |
54 } | |
55 | |
56 | |
57 | |
58 template<> | |
59 template<typename eT> | |
60 arma_inline | |
61 bool | |
62 cond_rel<true>::leq(const eT A, const eT B) | |
63 { | |
64 return (A <= B); | |
65 } | |
66 | |
67 | |
68 | |
69 template<> | |
70 template<typename eT> | |
71 arma_inline | |
72 bool | |
73 cond_rel<false>::leq(const eT, const eT) | |
74 { | |
75 return false; | |
76 } | |
77 | |
78 | |
79 | |
80 template<> | |
81 template<typename eT> | |
82 arma_inline | |
83 bool | |
84 cond_rel<true>::geq(const eT A, const eT B) | |
85 { | |
86 return (A >= B); | |
87 } | |
88 | |
89 | |
90 | |
91 template<> | |
92 template<typename eT> | |
93 arma_inline | |
94 bool | |
95 cond_rel<false>::geq(const eT, const eT) | |
96 { | |
97 return false; | |
98 } | |
99 | |
100 | |
101 | |
102 //! @} |