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

Namespaces | Defines
include/tvmet/xpr/MatrixUnaryFunctions.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 Rows, std::size_t Cols>     \
inline                  \
XprMatrix<                \
  XprUnOp<                \
    Fcnl_##NAME<typename E::value_type>,        \
    XprMatrix<E, Rows, Cols>            \
  >,                  \
  Rows, Cols                \
>                 \
NAME(const XprMatrix<E, Rows, Cols>& rhs) TVMET_CXX_ALWAYS_INLINE;
#define TVMET_IMPLEMENT_MACRO (   NAME)
Value:
template<class E, std::size_t Rows, std::size_t Cols>      \
inline                   \
XprMatrix<                 \
  XprUnOp<                 \
    Fcnl_##NAME<typename E::value_type>,         \
    XprMatrix<E, Rows, Cols>             \
  >,                   \
  Rows, Cols                 \
>                  \
NAME(const XprMatrix<E, Rows, Cols>& rhs) {        \
  typedef XprUnOp<               \
    Fcnl_##NAME<typename E::value_type>,         \
    XprMatrix<E, Rows, Cols>             \
  >               expr_type; \
  return XprMatrix<expr_type, Rows, Cols>(expr_type(rhs));     \
}
Todo:
isnan etc.

- default return is only an int!

 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines

Author: