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

Namespaces | Defines
include/tvmet/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_DECLARE_MACRO(NAME)
#define TVMET_IMPLEMENT_MACRO(NAME)
#define TVMET_IMPLEMENT_MACRO(NAME)

Define Documentation

#define TVMET_DECLARE_MACRO (   NAME)
Value:
template<class T, std::size_t Sz>     \
XprVector<            \
  XprUnOp<            \
    Fcnl_##NAME<T>,         \
    VectorConstReference<T, Sz>       \
  >,              \
  Sz              \
>             \
NAME(const Vector<T, Sz>& rhs) TVMET_CXX_ALWAYS_INLINE;
Todo:
isnan etc.

- default return is only an int!

#define TVMET_DECLARE_MACRO (   NAME)
Value:
template<class T, std::size_t Sz>         \
XprVector<                \
  XprUnOp<                \
    Fcnl_##NAME< std::complex<T> >,         \
    VectorConstReference<std::complex<T>, Sz>       \
  >,                  \
  Sz                  \
>                 \
NAME(const Vector<std::complex<T>, Sz>& rhs) TVMET_CXX_ALWAYS_INLINE;
Todo:
isnan etc.

- default return is only an int!

#define TVMET_IMPLEMENT_MACRO (   NAME)
Value:
template<class T, std::size_t Sz>         \
inline                  \
XprVector<                \
  XprUnOp<                \
    Fcnl_##NAME<T>,             \
    VectorConstReference<T, Sz>           \
  >,                  \
  Sz                  \
>                 \
NAME(const Vector<T, Sz>& rhs) {          \
  typedef XprUnOp<              \
      Fcnl_##NAME<T>,             \
      VectorConstReference<T, Sz>         \
    >               expr_type;  \
    return XprVector<expr_type, Sz>(expr_type(rhs.const_ref()));  \
}
Todo:
isnan etc.

- default return is only an int!

#define TVMET_IMPLEMENT_MACRO (   NAME)
Value:
template<class T, std::size_t Sz>         \
inline                  \
XprVector<                \
  XprUnOp<                \
    Fcnl_##NAME< std::complex<T> >,         \
    VectorConstReference<std::complex<T>, Sz>       \
  >,                  \
  Sz                  \
>                 \
NAME(const Vector<std::complex<T>, Sz>& rhs) {        \
  typedef XprUnOp<              \
      Fcnl_##NAME< std::complex<T> >,         \
      VectorConstReference<std::complex<T>, Sz>       \
    >               expr_type;  \
    return XprVector<expr_type, Sz>(expr_type(rhs.const_ref()));  \
}
Todo:
isnan etc.

- default return is only an int!

 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines

Author: