Go to the source code of this file.
Define Documentation
#define TVMET_DECLARE_MACRO |
( |
|
NAME | ) |
|
Value:template<class E, std::size_t Sz> \
inline \
XprVector< \
XprUnOp< \
Fcnl_##NAME<typename E::value_type>, \
XprVector<E, Sz> \
>, \
Sz \
> \
NAME(const XprVector<E, Sz>& rhs) TVMET_CXX_ALWAYS_INLINE;
#define TVMET_IMPLEMENT_MACRO |
( |
|
NAME | ) |
|
Value:template<class E, std::size_t Sz> \
inline \
XprVector< \
XprUnOp< \
Fcnl_##NAME<typename E::value_type>, \
XprVector<E, Sz> \
>, \
Sz \
> \
NAME(const XprVector<E, Sz>& rhs) { \
typedef XprUnOp< \
Fcnl_##NAME<typename E::value_type>, \
XprVector<E, Sz> \
> expr_type; \
return XprVector<expr_type, Sz>(expr_type(rhs)); \
}
- Todo:
- isnan etc.
- default return is only an int!