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

Namespaces | Defines
include/tvmet/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_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 Rows, std::size_t Cols>   \
inline                \
XprMatrix<              \
  XprUnOp<              \
    Fcnl_##NAME<T>,           \
    MatrixConstReference<T, Rows, Cols>       \
  >,                \
  Rows, Cols              \
>               \
NAME(const Matrix<T, Rows, Cols>& 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 Rows, std::size_t Cols>       \
inline                    \
XprMatrix<                  \
  XprUnOp<                  \
    Fcnl_##NAME< std::complex<T> >,           \
    MatrixConstReference<std::complex<T>, Rows, Cols>       \
  >,                    \
  Rows, Cols                  \
>                   \
NAME(const Matrix<std::complex<T>, Rows, Cols>& 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 Rows, std::size_t Cols>     \
inline                  \
XprMatrix<                \
  XprUnOp<                \
    Fcnl_##NAME<T>,             \
    MatrixConstReference<T, Rows, Cols>         \
  >,                  \
  Rows, Cols                \
>                 \
NAME(const Matrix<T, Rows, Cols>& rhs) {        \
  typedef XprUnOp<              \
    Fcnl_##NAME<T>,             \
    MatrixConstReference<T, Rows, Cols>         \
  >               expr_type;  \
  return XprMatrix<expr_type, Rows, Cols>(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 Rows, std::size_t Cols>     \
inline                  \
XprMatrix<                \
  XprUnOp<                \
    Fcnl_##NAME< std::complex<T> >,         \
    MatrixConstReference<std::complex<T>, Rows, Cols>     \
  >,                  \
  Rows, Cols                \
>                 \
NAME(const Matrix<std::complex<T>, Rows, Cols>& rhs) {      \
  typedef XprUnOp<              \
    Fcnl_##NAME< std::complex<T> >,         \
    MatrixConstReference<std::complex<T>, Rows, Cols>     \
  >               expr_type;  \
  return XprMatrix<expr_type, Rows, Cols>(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: