inlib  1.2.0
Defines | Functions
/Users/barrand/private/dev/softinex/old/inexlib-1.2/inlib/inlib/vops File Reference
#include "vmanip"
Include dependency graph for vops:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define inlib_vops

Functions

template<class T >
std::vector< T > operator+ (const std::vector< T > &a1, const std::vector< T > &a2)
template<class T >
std::vector< T > operator- (const std::vector< T > &a1, const std::vector< T > &a2)
template<class T >
std::vector< T > operator* (const std::vector< T > &a1, const std::vector< T > &a2)
template<class T >
std::vector< T > operator/ (const std::vector< T > &a1, const std::vector< T > &a2)
template<class T >
std::vector< T > operator* (const std::vector< T > &a1, const T &a2)
template<class T >
std::vector< T > operator* (const T &a2, const std::vector< T > &a1)

Define Documentation

#define inlib_vops

Definition at line 5 of file vops.


Function Documentation

template<class T >
std::vector<T> operator* ( const std::vector< T > &  a1,
const std::vector< T > &  a2 
) [inline]

Definition at line 34 of file vops.

                                                                             {
  std::vector<T> res(a1);
  inlib::mul(res,a2);
  return res;
}
template<class T >
std::vector<T> operator* ( const std::vector< T > &  a1,
const T &  a2 
) [inline]

Definition at line 48 of file vops.

                                                                  {
  std::vector<T> res(a1);
  inlib::mul(res,a2);
  return res;
}
template<class T >
std::vector<T> operator* ( const T &  a2,
const std::vector< T > &  a1 
) [inline]

Definition at line 55 of file vops.

                                                                  {
  std::vector<T> res(a1);
  inlib::mul(res,a2);
  return res;
}
template<class T >
std::vector<T> operator+ ( const std::vector< T > &  a1,
const std::vector< T > &  a2 
) [inline]

Definition at line 20 of file vops.

                                                                             {
  std::vector<T> res(a1);
  inlib::add(res,a2);
  return res;
}
template<class T >
std::vector<T> operator- ( const std::vector< T > &  a1,
const std::vector< T > &  a2 
) [inline]

Definition at line 27 of file vops.

                                                                             {
  std::vector<T> res(a1);
  inlib::sub(res,a2);
  return res;
}
template<class T >
std::vector<T> operator/ ( const std::vector< T > &  a1,
const std::vector< T > &  a2 
) [inline]

Definition at line 41 of file vops.

                                                                             {
  std::vector<T> res(a1);
  inlib::div(res,a2); //WARNING : could have /0 errors !
  return res;
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines