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

Namespaces | Defines | Functions
include/tvmet/VectorBinaryFunctions.h File Reference
#include <tvmet/NumericTraits.h>
#include <tvmet/Extremum.h>
Include dependency graph for VectorBinaryFunctions.h:
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, TP)
#define TVMET_IMPLEMENT_MACRO(NAME)
#define TVMET_IMPLEMENT_MACRO(NAME, TP)

Functions

template<class T , std::size_t Sz>
XprVector< XprBinOp< Fcnl_pow
< T, std::complex< T >
>, VectorConstReference< T,
Sz >, XprLiteral< std::complex
< T > > >, Sz > 
tvmet::pow (const Vector< T, Sz > &lhs, const std::complex< T > &rhs) TVMET_CXX_ALWAYS_INLINE
 power function on Vector and std::complex<T>.
template<class T , std::size_t Sz>
XprVector< XprBinOp< Fcnl_pow
< std::complex< T >
, std::complex< T >
>, VectorConstReference
< std::complex< T >, Sz >
, XprLiteral< std::complex< T >
> >, Sz > 
tvmet::pow (const Vector< std::complex< T >, Sz > &lhs, const std::complex< T > &rhs) TVMET_CXX_ALWAYS_INLINE
template<class T , std::size_t Sz>
XprVector< XprBinOp< Fcnl_pow
< std::complex< T >, T >
, VectorConstReference
< std::complex< T >, Sz >
, XprLiteral< T > >, Sz > 
tvmet::pow (const Vector< std::complex< T >, Sz > &lhs, const T &rhs) TVMET_CXX_ALWAYS_INLINE
template<class T , std::size_t Sz>
XprVector< XprBinOp< Fcnl_pow
< std::complex< T >, int >
, VectorConstReference
< std::complex< T >, Sz >
, XprLiteral< int > >, Sz > 
tvmet::pow (const Vector< std::complex< T >, Sz > &lhs, int rhs) TVMET_CXX_ALWAYS_INLINE
template<class T , std::size_t Sz>
XprVector< XprBinOp
< Fcnl_polar< T, T >
, VectorConstReference< T, Sz >
, XprLiteral< T > >, Sz > 
tvmet::polar (const Vector< T, Sz > &lhs, const T &rhs) TVMET_CXX_ALWAYS_INLINE

Define Documentation

#define TVMET_DECLARE_MACRO (   NAME)
#define TVMET_DECLARE_MACRO (   NAME,
  TP 
)
Value:
template<class T, std::size_t Sz>       \
inline                \
XprVector<              \
  XprBinOp<             \
    Fcnl_##NAME<T, TP >,          \
    VectorConstReference<T, Sz>,        \
    XprLiteral< TP >            \
  >,                \
  Sz                \
>               \
NAME(const Vector<T, Sz>& lhs, TP rhs) TVMET_CXX_ALWAYS_INLINE;
#define TVMET_IMPLEMENT_MACRO (   NAME)
#define TVMET_IMPLEMENT_MACRO (   NAME,
  TP 
)
Value:
template<class T, std::size_t Sz>         \
inline                  \
XprVector<                \
  XprBinOp<               \
    Fcnl_##NAME<T, TP >,            \
    VectorConstReference<T, Sz>,          \
    XprLiteral< TP >              \
  >,                  \
  Sz                  \
>                 \
NAME(const Vector<T, Sz>& lhs, TP rhs) {        \
  typedef XprBinOp<             \
    Fcnl_##NAME<T, TP >,            \
    VectorConstReference<T, Sz>,          \
    XprLiteral< TP >              \
  >             expr_type;  \
  return XprVector<expr_type, Sz>(          \
    expr_type(lhs.const_ref(), XprLiteral< TP >(rhs)));     \
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines

Author: