SourceForge Logo Tiny Vector Matrix library using Expression Templates Sourceforge Project Page

Namespaces | Defines
include/tvmet/xpr/VectorUnaryFunctions.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  tvmet
 

The namespace for the Tiny Vector Matrix using Expression Templates Libary.


Defines

#define TVMET_DECLARE_MACRO(NAME)
#define TVMET_IMPLEMENT_MACRO(NAME)

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!

 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines

Author: