#include <blitz/blitz.h>
#include <blitz/promote.h>
#include <blitz/prettyprint.h>
Include dependency graph for ops.h:
Go to the source code of this file.
|
Value: template<typename T_numtype1, typename T_numtype2> \ struct name { \ typedef BZ_PROMOTE(T_numtype1, T_numtype2) T_numtype; \ \ static inline T_numtype \ apply(T_numtype1 a, T_numtype2 b) \ { return a op b; } \ \ template<typename T1, typename T2> \ static inline void prettyPrint(BZ_STD_SCOPE(string) &str, \ prettyPrintFormat& format, const T1& t1, \ const T2& t2) \ { \ str += "("; \ t1.prettyPrint(str, format); \ str += #op; \ t2.prettyPrint(str, format); \ str += ")"; \ } \ }; |
|
Value: template<typename T_numtype1, typename T_numtype2> \ struct name { \ typedef ret T_numtype; \ static inline T_numtype \ apply(T_numtype1 a, T_numtype2 b) \ { return a op b; } \ \ template<typename T1, typename T2> \ static inline void prettyPrint(BZ_STD_SCOPE(string) &str, \ prettyPrintFormat& format, const T1& t1, \ const T2& t2) \ { \ str += "("; \ t1.prettyPrint(str, format); \ str += #op; \ t2.prettyPrint(str, format); \ str += ")"; \ } \ }; |
|
Value: template<typename T_numtype1> \ struct name { \ typedef T_numtype1 T_numtype; \ \ static inline T_numtype \ apply(T_numtype1 a) \ { return op a; } \ \ template<typename T1> \ static inline void prettyPrint(BZ_STD_SCOPE(string) &str, \ prettyPrintFormat& format, const T1& t1) \ { \ str += #op; \ t1.prettyPrint(str, format); \ } \ }; |
|
Value: template<typename T_numtype1> \ struct name { \ typedef ret T_numtype; \ static inline T_numtype \ apply(T_numtype1 a) \ { return op a; } \ \ template<typename T1> \ static inline void prettyPrint(BZ_STD_SCOPE(string) &str, \ prettyPrintFormat& format, const T1& t1) \ { \ str += #op; \ t1.prettyPrint(str, format); \ } \ }; |