Eurobot2012_Primary

Dependencies:   mbed Eurobot_2012_Primary

Committer:
narshu
Date:
Wed Oct 17 22:22:47 2012 +0000
Revision:
26:0995f61cb7b8
Parent:
25:143b19c1fb05
Eurobot 2012 Primary;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
narshu 25:143b19c1fb05 1 /*
narshu 25:143b19c1fb05 2 * Tiny Vector Matrix Library
narshu 25:143b19c1fb05 3 * Dense Vector Matrix Libary of Tiny size using Expression Templates
narshu 25:143b19c1fb05 4 *
narshu 25:143b19c1fb05 5 * Copyright (C) 2001 - 2007 Olaf Petzold <opetzold@users.sourceforge.net>
narshu 25:143b19c1fb05 6 *
narshu 25:143b19c1fb05 7 * This library is free software; you can redistribute it and/or
narshu 25:143b19c1fb05 8 * modify it under the terms of the GNU lesser General Public
narshu 25:143b19c1fb05 9 * License as published by the Free Software Foundation; either
narshu 25:143b19c1fb05 10 * version 2.1 of the License, or (at your option) any later version.
narshu 25:143b19c1fb05 11 *
narshu 25:143b19c1fb05 12 * This library is distributed in the hope that it will be useful,
narshu 25:143b19c1fb05 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
narshu 25:143b19c1fb05 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
narshu 25:143b19c1fb05 15 * lesser General Public License for more details.
narshu 25:143b19c1fb05 16 *
narshu 25:143b19c1fb05 17 * You should have received a copy of the GNU lesser General Public
narshu 25:143b19c1fb05 18 * License along with this library; if not, write to the Free Software
narshu 25:143b19c1fb05 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
narshu 25:143b19c1fb05 20 *
narshu 25:143b19c1fb05 21 * $Id: MatrixBinaryFunctions.h,v 1.12 2007-06-23 15:59:00 opetzold Exp $
narshu 25:143b19c1fb05 22 */
narshu 25:143b19c1fb05 23
narshu 25:143b19c1fb05 24 #ifndef TVMET_XPR_MATRIX_BINARY_FUNCTIONS_H
narshu 25:143b19c1fb05 25 #define TVMET_XPR_MATRIX_BINARY_FUNCTIONS_H
narshu 25:143b19c1fb05 26
narshu 25:143b19c1fb05 27 namespace tvmet {
narshu 25:143b19c1fb05 28
narshu 25:143b19c1fb05 29
narshu 25:143b19c1fb05 30 /*********************************************************
narshu 25:143b19c1fb05 31 * PART I: DECLARATION
narshu 25:143b19c1fb05 32 *********************************************************/
narshu 25:143b19c1fb05 33
narshu 25:143b19c1fb05 34 /*
narshu 25:143b19c1fb05 35 * binary_function(XprMatrix<E1, Rows, Cols>, XprMatrix<E2, Rows, Cols>)
narshu 25:143b19c1fb05 36 */
narshu 25:143b19c1fb05 37 #define TVMET_DECLARE_MACRO(NAME) \
narshu 25:143b19c1fb05 38 template<class E1, std::size_t Rows, std::size_t Cols, class E2> \
narshu 25:143b19c1fb05 39 XprMatrix< \
narshu 25:143b19c1fb05 40 XprBinOp< \
narshu 25:143b19c1fb05 41 Fcnl_##NAME<typename E1::value_type, typename E2::value_type>, \
narshu 25:143b19c1fb05 42 XprMatrix<E1, Rows, Cols>, \
narshu 25:143b19c1fb05 43 XprMatrix<E2, Rows, Cols> \
narshu 25:143b19c1fb05 44 >, \
narshu 25:143b19c1fb05 45 Rows, Cols \
narshu 25:143b19c1fb05 46 > \
narshu 25:143b19c1fb05 47 NAME(const XprMatrix<E1, Rows, Cols>& lhs, \
narshu 25:143b19c1fb05 48 const XprMatrix<E2, Rows, Cols>& rhs) TVMET_CXX_ALWAYS_INLINE;
narshu 25:143b19c1fb05 49
narshu 25:143b19c1fb05 50 TVMET_DECLARE_MACRO(atan2)
narshu 25:143b19c1fb05 51 TVMET_DECLARE_MACRO(drem)
narshu 25:143b19c1fb05 52 TVMET_DECLARE_MACRO(fmod)
narshu 25:143b19c1fb05 53 TVMET_DECLARE_MACRO(hypot)
narshu 25:143b19c1fb05 54 TVMET_DECLARE_MACRO(jn)
narshu 25:143b19c1fb05 55 TVMET_DECLARE_MACRO(yn)
narshu 25:143b19c1fb05 56 TVMET_DECLARE_MACRO(pow)
narshu 25:143b19c1fb05 57 #if defined(TVMET_HAVE_COMPLEX)
narshu 25:143b19c1fb05 58 //TVMET_DECLARE_MACRO(polar)
narshu 25:143b19c1fb05 59 #endif
narshu 25:143b19c1fb05 60
narshu 25:143b19c1fb05 61 #undef TVMET_DECLARE_MACRO
narshu 25:143b19c1fb05 62
narshu 25:143b19c1fb05 63
narshu 25:143b19c1fb05 64 /*
narshu 25:143b19c1fb05 65 * binary_function(XprMatrix<E, Rows, Cols>, POD)
narshu 25:143b19c1fb05 66 */
narshu 25:143b19c1fb05 67 #define TVMET_DECLARE_MACRO(NAME, TP) \
narshu 25:143b19c1fb05 68 template<class E, std::size_t Rows, std::size_t Cols> \
narshu 25:143b19c1fb05 69 XprMatrix< \
narshu 25:143b19c1fb05 70 XprBinOp< \
narshu 25:143b19c1fb05 71 Fcnl_##NAME<typename E::value_type, TP >, \
narshu 25:143b19c1fb05 72 XprMatrix<E, Rows, Cols>, \
narshu 25:143b19c1fb05 73 XprLiteral< TP > \
narshu 25:143b19c1fb05 74 >, \
narshu 25:143b19c1fb05 75 Rows, Cols \
narshu 25:143b19c1fb05 76 > \
narshu 25:143b19c1fb05 77 NAME(const XprMatrix<E, Rows, Cols>& lhs, \
narshu 25:143b19c1fb05 78 TP rhs) TVMET_CXX_ALWAYS_INLINE;
narshu 25:143b19c1fb05 79
narshu 25:143b19c1fb05 80 TVMET_DECLARE_MACRO(atan2, int)
narshu 25:143b19c1fb05 81 TVMET_DECLARE_MACRO(drem, int)
narshu 25:143b19c1fb05 82 TVMET_DECLARE_MACRO(fmod, int)
narshu 25:143b19c1fb05 83 TVMET_DECLARE_MACRO(hypot, int)
narshu 25:143b19c1fb05 84 TVMET_DECLARE_MACRO(jn, int)
narshu 25:143b19c1fb05 85 TVMET_DECLARE_MACRO(yn, int)
narshu 25:143b19c1fb05 86 TVMET_DECLARE_MACRO(pow, int)
narshu 25:143b19c1fb05 87
narshu 25:143b19c1fb05 88 #if defined(TVMET_HAVE_LONG_LONG)
narshu 25:143b19c1fb05 89 TVMET_DECLARE_MACRO(atan2, long long int)
narshu 25:143b19c1fb05 90 TVMET_DECLARE_MACRO(drem, long long int)
narshu 25:143b19c1fb05 91 TVMET_DECLARE_MACRO(fmod, long long int)
narshu 25:143b19c1fb05 92 TVMET_DECLARE_MACRO(hypot, long long int)
narshu 25:143b19c1fb05 93 TVMET_DECLARE_MACRO(jn, long long int)
narshu 25:143b19c1fb05 94 TVMET_DECLARE_MACRO(yn,long long int)
narshu 25:143b19c1fb05 95 TVMET_DECLARE_MACRO(pow, long long int)
narshu 25:143b19c1fb05 96 #endif // defined(TVMET_HAVE_LONG_LONG)
narshu 25:143b19c1fb05 97
narshu 25:143b19c1fb05 98 TVMET_DECLARE_MACRO(atan2, float)
narshu 25:143b19c1fb05 99 TVMET_DECLARE_MACRO(drem, float)
narshu 25:143b19c1fb05 100 TVMET_DECLARE_MACRO(fmod, float)
narshu 25:143b19c1fb05 101 TVMET_DECLARE_MACRO(hypot, float)
narshu 25:143b19c1fb05 102 TVMET_DECLARE_MACRO(jn, float)
narshu 25:143b19c1fb05 103 TVMET_DECLARE_MACRO(yn, float)
narshu 25:143b19c1fb05 104 TVMET_DECLARE_MACRO(pow, float)
narshu 25:143b19c1fb05 105
narshu 25:143b19c1fb05 106 TVMET_DECLARE_MACRO(atan2, double)
narshu 25:143b19c1fb05 107 TVMET_DECLARE_MACRO(drem, double)
narshu 25:143b19c1fb05 108 TVMET_DECLARE_MACRO(fmod, double)
narshu 25:143b19c1fb05 109 TVMET_DECLARE_MACRO(hypot,double)
narshu 25:143b19c1fb05 110 TVMET_DECLARE_MACRO(jn, double)
narshu 25:143b19c1fb05 111 TVMET_DECLARE_MACRO(yn, double)
narshu 25:143b19c1fb05 112 TVMET_DECLARE_MACRO(pow, double)
narshu 25:143b19c1fb05 113
narshu 25:143b19c1fb05 114 #if defined(TVMET_HAVE_LONG_DOUBLE)
narshu 25:143b19c1fb05 115 TVMET_DECLARE_MACRO(atan2, long double)
narshu 25:143b19c1fb05 116 TVMET_DECLARE_MACRO(drem, long double)
narshu 25:143b19c1fb05 117 TVMET_DECLARE_MACRO(fmod, long double)
narshu 25:143b19c1fb05 118 TVMET_DECLARE_MACRO(hypot, long double)
narshu 25:143b19c1fb05 119 TVMET_DECLARE_MACRO(jn, long double)
narshu 25:143b19c1fb05 120 TVMET_DECLARE_MACRO(yn, long double)
narshu 25:143b19c1fb05 121 TVMET_DECLARE_MACRO(pow, long double)
narshu 25:143b19c1fb05 122 #endif // defined(TVMET_HAVE_LONG_DOUBLE)
narshu 25:143b19c1fb05 123
narshu 25:143b19c1fb05 124 #undef TVMET_DECLARE_MACRO
narshu 25:143b19c1fb05 125
narshu 25:143b19c1fb05 126
narshu 25:143b19c1fb05 127 #if defined(TVMET_HAVE_COMPLEX)
narshu 25:143b19c1fb05 128 /*
narshu 25:143b19c1fb05 129 * binary_function(XprMatrix<E, Rows, Cols>, std::complex<>)
narshu 25:143b19c1fb05 130 */
narshu 25:143b19c1fb05 131 #define TVMET_DECLARE_MACRO(NAME) \
narshu 25:143b19c1fb05 132 template<class E, std::size_t Rows, std::size_t Cols, class T> \
narshu 25:143b19c1fb05 133 XprMatrix< \
narshu 25:143b19c1fb05 134 XprBinOp< \
narshu 25:143b19c1fb05 135 Fcnl_##NAME<typename E::value_type, std::complex<T> >, \
narshu 25:143b19c1fb05 136 XprMatrix<E, Rows, Cols>, \
narshu 25:143b19c1fb05 137 XprLiteral< std::complex<T> > \
narshu 25:143b19c1fb05 138 >, \
narshu 25:143b19c1fb05 139 Rows, Cols \
narshu 25:143b19c1fb05 140 > \
narshu 25:143b19c1fb05 141 NAME(const XprMatrix<E, Rows, Cols>& lhs, \
narshu 25:143b19c1fb05 142 const std::complex<T>& rhs) TVMET_CXX_ALWAYS_INLINE;
narshu 25:143b19c1fb05 143
narshu 25:143b19c1fb05 144 TVMET_DECLARE_MACRO(pow)
narshu 25:143b19c1fb05 145
narshu 25:143b19c1fb05 146 TVMET_DECLARE_MACRO(atan2)
narshu 25:143b19c1fb05 147 TVMET_DECLARE_MACRO(drem)
narshu 25:143b19c1fb05 148 TVMET_DECLARE_MACRO(fmod)
narshu 25:143b19c1fb05 149 TVMET_DECLARE_MACRO(hypot)
narshu 25:143b19c1fb05 150 TVMET_DECLARE_MACRO(jn)
narshu 25:143b19c1fb05 151 TVMET_DECLARE_MACRO(yn)
narshu 25:143b19c1fb05 152
narshu 25:143b19c1fb05 153 #undef TVMET_DECLARE_MACRO
narshu 25:143b19c1fb05 154
narshu 25:143b19c1fb05 155 #endif // defined(TVMET_HAVE_COMPLEX)
narshu 25:143b19c1fb05 156
narshu 25:143b19c1fb05 157
narshu 25:143b19c1fb05 158 /*********************************************************
narshu 25:143b19c1fb05 159 * PART II: IMPLEMENTATION
narshu 25:143b19c1fb05 160 *********************************************************/
narshu 25:143b19c1fb05 161
narshu 25:143b19c1fb05 162
narshu 25:143b19c1fb05 163 /*
narshu 25:143b19c1fb05 164 * binary_function(XprMatrix<E1, Rows, Cols>, XprMatrix<E2, Rows, Cols>)
narshu 25:143b19c1fb05 165 */
narshu 25:143b19c1fb05 166 #define TVMET_IMPLEMENT_MACRO(NAME) \
narshu 25:143b19c1fb05 167 template<class E1, std::size_t Rows, std::size_t Cols, class E2> \
narshu 25:143b19c1fb05 168 inline \
narshu 25:143b19c1fb05 169 XprMatrix< \
narshu 25:143b19c1fb05 170 XprBinOp< \
narshu 25:143b19c1fb05 171 Fcnl_##NAME<typename E1::value_type, typename E2::value_type>, \
narshu 25:143b19c1fb05 172 XprMatrix<E1, Rows, Cols>, \
narshu 25:143b19c1fb05 173 XprMatrix<E2, Rows, Cols> \
narshu 25:143b19c1fb05 174 >, \
narshu 25:143b19c1fb05 175 Rows, Cols \
narshu 25:143b19c1fb05 176 > \
narshu 25:143b19c1fb05 177 NAME(const XprMatrix<E1, Rows, Cols>& lhs, const XprMatrix<E2, Rows, Cols>& rhs) { \
narshu 25:143b19c1fb05 178 typedef XprBinOp< \
narshu 25:143b19c1fb05 179 Fcnl_##NAME<typename E1::value_type, typename E2::value_type>, \
narshu 25:143b19c1fb05 180 XprMatrix<E1, Rows, Cols>, \
narshu 25:143b19c1fb05 181 XprMatrix<E2, Rows, Cols> \
narshu 25:143b19c1fb05 182 > expr_type; \
narshu 25:143b19c1fb05 183 return XprMatrix<expr_type, Rows, Cols>( \
narshu 25:143b19c1fb05 184 expr_type(lhs, rhs)); \
narshu 25:143b19c1fb05 185 }
narshu 25:143b19c1fb05 186
narshu 25:143b19c1fb05 187 TVMET_IMPLEMENT_MACRO(atan2)
narshu 25:143b19c1fb05 188 TVMET_IMPLEMENT_MACRO(drem)
narshu 25:143b19c1fb05 189 TVMET_IMPLEMENT_MACRO(fmod)
narshu 25:143b19c1fb05 190 TVMET_IMPLEMENT_MACRO(hypot)
narshu 25:143b19c1fb05 191 TVMET_IMPLEMENT_MACRO(jn)
narshu 25:143b19c1fb05 192 TVMET_IMPLEMENT_MACRO(yn)
narshu 25:143b19c1fb05 193 TVMET_IMPLEMENT_MACRO(pow)
narshu 25:143b19c1fb05 194 #if defined(TVMET_HAVE_COMPLEX)
narshu 25:143b19c1fb05 195 //TVMET_IMPLEMENT_MACRO(polar)
narshu 25:143b19c1fb05 196 #endif
narshu 25:143b19c1fb05 197
narshu 25:143b19c1fb05 198 #undef TVMET_IMPLEMENT_MACRO
narshu 25:143b19c1fb05 199
narshu 25:143b19c1fb05 200
narshu 25:143b19c1fb05 201 /*
narshu 25:143b19c1fb05 202 * binary_function(XprMatrix<E, Rows, Cols>, POD)
narshu 25:143b19c1fb05 203 */
narshu 25:143b19c1fb05 204 #define TVMET_IMPLEMENT_MACRO(NAME, TP) \
narshu 25:143b19c1fb05 205 template<class E, std::size_t Rows, std::size_t Cols> \
narshu 25:143b19c1fb05 206 inline \
narshu 25:143b19c1fb05 207 XprMatrix< \
narshu 25:143b19c1fb05 208 XprBinOp< \
narshu 25:143b19c1fb05 209 Fcnl_##NAME<typename E::value_type, TP >, \
narshu 25:143b19c1fb05 210 XprMatrix<E, Rows, Cols>, \
narshu 25:143b19c1fb05 211 XprLiteral< TP > \
narshu 25:143b19c1fb05 212 >, \
narshu 25:143b19c1fb05 213 Rows, Cols \
narshu 25:143b19c1fb05 214 > \
narshu 25:143b19c1fb05 215 NAME(const XprMatrix<E, Rows, Cols>& lhs, TP rhs) { \
narshu 25:143b19c1fb05 216 typedef XprBinOp< \
narshu 25:143b19c1fb05 217 Fcnl_##NAME<typename E::value_type, TP >, \
narshu 25:143b19c1fb05 218 XprMatrix<E, Rows, Cols>, \
narshu 25:143b19c1fb05 219 XprLiteral< TP > \
narshu 25:143b19c1fb05 220 > expr_type; \
narshu 25:143b19c1fb05 221 return XprMatrix<expr_type, Rows, Cols>( \
narshu 25:143b19c1fb05 222 expr_type(lhs, XprLiteral< TP >(rhs))); \
narshu 25:143b19c1fb05 223 }
narshu 25:143b19c1fb05 224
narshu 25:143b19c1fb05 225 TVMET_IMPLEMENT_MACRO(atan2, int)
narshu 25:143b19c1fb05 226 TVMET_IMPLEMENT_MACRO(drem, int)
narshu 25:143b19c1fb05 227 TVMET_IMPLEMENT_MACRO(fmod, int)
narshu 25:143b19c1fb05 228 TVMET_IMPLEMENT_MACRO(hypot, int)
narshu 25:143b19c1fb05 229 TVMET_IMPLEMENT_MACRO(jn, int)
narshu 25:143b19c1fb05 230 TVMET_IMPLEMENT_MACRO(yn, int)
narshu 25:143b19c1fb05 231 TVMET_IMPLEMENT_MACRO(pow, int)
narshu 25:143b19c1fb05 232
narshu 25:143b19c1fb05 233 #if defined(TVMET_HAVE_LONG_LONG)
narshu 25:143b19c1fb05 234 TVMET_IMPLEMENT_MACRO(atan2, long long int)
narshu 25:143b19c1fb05 235 TVMET_IMPLEMENT_MACRO(drem, long long int)
narshu 25:143b19c1fb05 236 TVMET_IMPLEMENT_MACRO(fmod, long long int)
narshu 25:143b19c1fb05 237 TVMET_IMPLEMENT_MACRO(hypot, long long int)
narshu 25:143b19c1fb05 238 TVMET_IMPLEMENT_MACRO(jn, long long int)
narshu 25:143b19c1fb05 239 TVMET_IMPLEMENT_MACRO(yn,long long int)
narshu 25:143b19c1fb05 240 TVMET_IMPLEMENT_MACRO(pow, long long int)
narshu 25:143b19c1fb05 241 #endif // defined(TVMET_HAVE_LONG_LONG)
narshu 25:143b19c1fb05 242
narshu 25:143b19c1fb05 243 TVMET_IMPLEMENT_MACRO(atan2, float)
narshu 25:143b19c1fb05 244 TVMET_IMPLEMENT_MACRO(drem, float)
narshu 25:143b19c1fb05 245 TVMET_IMPLEMENT_MACRO(fmod, float)
narshu 25:143b19c1fb05 246 TVMET_IMPLEMENT_MACRO(hypot, float)
narshu 25:143b19c1fb05 247 TVMET_IMPLEMENT_MACRO(jn, float)
narshu 25:143b19c1fb05 248 TVMET_IMPLEMENT_MACRO(yn, float)
narshu 25:143b19c1fb05 249 TVMET_IMPLEMENT_MACRO(pow, float)
narshu 25:143b19c1fb05 250
narshu 25:143b19c1fb05 251 TVMET_IMPLEMENT_MACRO(atan2, double)
narshu 25:143b19c1fb05 252 TVMET_IMPLEMENT_MACRO(drem, double)
narshu 25:143b19c1fb05 253 TVMET_IMPLEMENT_MACRO(fmod, double)
narshu 25:143b19c1fb05 254 TVMET_IMPLEMENT_MACRO(hypot,double)
narshu 25:143b19c1fb05 255 TVMET_IMPLEMENT_MACRO(jn, double)
narshu 25:143b19c1fb05 256 TVMET_IMPLEMENT_MACRO(yn, double)
narshu 25:143b19c1fb05 257 TVMET_IMPLEMENT_MACRO(pow, double)
narshu 25:143b19c1fb05 258
narshu 25:143b19c1fb05 259 #if defined(TVMET_HAVE_LONG_DOUBLE)
narshu 25:143b19c1fb05 260 TVMET_IMPLEMENT_MACRO(atan2, long double)
narshu 25:143b19c1fb05 261 TVMET_IMPLEMENT_MACRO(drem, long double)
narshu 25:143b19c1fb05 262 TVMET_IMPLEMENT_MACRO(fmod, long double)
narshu 25:143b19c1fb05 263 TVMET_IMPLEMENT_MACRO(hypot, long double)
narshu 25:143b19c1fb05 264 TVMET_IMPLEMENT_MACRO(jn, long double)
narshu 25:143b19c1fb05 265 TVMET_IMPLEMENT_MACRO(yn, long double)
narshu 25:143b19c1fb05 266 TVMET_IMPLEMENT_MACRO(pow, long double)
narshu 25:143b19c1fb05 267 #endif // defined(TVMET_HAVE_LONG_DOUBLE)
narshu 25:143b19c1fb05 268
narshu 25:143b19c1fb05 269 #undef TVMET_IMPLEMENT_MACRO
narshu 25:143b19c1fb05 270
narshu 25:143b19c1fb05 271
narshu 25:143b19c1fb05 272 #if defined(TVMET_HAVE_COMPLEX)
narshu 25:143b19c1fb05 273 /*
narshu 25:143b19c1fb05 274 * binary_function(XprMatrix<E, Rows, Cols>, std::complex<>)
narshu 25:143b19c1fb05 275 */
narshu 25:143b19c1fb05 276 #define TVMET_IMPLEMENT_MACRO(NAME) \
narshu 25:143b19c1fb05 277 template<class E, std::size_t Rows, std::size_t Cols, class T> \
narshu 25:143b19c1fb05 278 inline \
narshu 25:143b19c1fb05 279 XprMatrix< \
narshu 25:143b19c1fb05 280 XprBinOp< \
narshu 25:143b19c1fb05 281 Fcnl_##NAME<typename E::value_type, std::complex<T> >, \
narshu 25:143b19c1fb05 282 XprMatrix<E, Rows, Cols>, \
narshu 25:143b19c1fb05 283 XprLiteral< std::complex<T> > \
narshu 25:143b19c1fb05 284 >, \
narshu 25:143b19c1fb05 285 Rows, Cols \
narshu 25:143b19c1fb05 286 > \
narshu 25:143b19c1fb05 287 NAME(const XprMatrix<E, Rows, Cols>& lhs, const std::complex<T>& rhs) { \
narshu 25:143b19c1fb05 288 typedef XprBinOp< \
narshu 25:143b19c1fb05 289 Fcnl_##NAME<typename E::value_type, std::complex<T> >, \
narshu 25:143b19c1fb05 290 XprMatrix<E, Rows, Cols>, \
narshu 25:143b19c1fb05 291 XprLiteral< std::complex<T> > \
narshu 25:143b19c1fb05 292 > expr_type; \
narshu 25:143b19c1fb05 293 return XprMatrix<expr_type, Rows, Cols>( \
narshu 25:143b19c1fb05 294 expr_type(lhs, XprLiteral< std::complex<T> >(rhs))); \
narshu 25:143b19c1fb05 295 }
narshu 25:143b19c1fb05 296
narshu 25:143b19c1fb05 297 TVMET_IMPLEMENT_MACRO(pow)
narshu 25:143b19c1fb05 298
narshu 25:143b19c1fb05 299 TVMET_IMPLEMENT_MACRO(atan2)
narshu 25:143b19c1fb05 300 TVMET_IMPLEMENT_MACRO(drem)
narshu 25:143b19c1fb05 301 TVMET_IMPLEMENT_MACRO(fmod)
narshu 25:143b19c1fb05 302 TVMET_IMPLEMENT_MACRO(hypot)
narshu 25:143b19c1fb05 303 TVMET_IMPLEMENT_MACRO(jn)
narshu 25:143b19c1fb05 304 TVMET_IMPLEMENT_MACRO(yn)
narshu 25:143b19c1fb05 305
narshu 25:143b19c1fb05 306 #undef TVMET_IMPLEMENT_MACRO
narshu 25:143b19c1fb05 307
narshu 25:143b19c1fb05 308 #endif // defined(TVMET_HAVE_COMPLEX)
narshu 25:143b19c1fb05 309
narshu 25:143b19c1fb05 310
narshu 25:143b19c1fb05 311 } // namespace tvmet
narshu 25:143b19c1fb05 312
narshu 25:143b19c1fb05 313 #endif // TVMET_XPR_MATRIX_BINARY_FUNCTIONS_H
narshu 25:143b19c1fb05 314
narshu 25:143b19c1fb05 315 // Local Variables:
narshu 25:143b19c1fb05 316 // mode:C++
narshu 25:143b19c1fb05 317 // tab-width:8
narshu 25:143b19c1fb05 318 // End: