inlib
1.2.0
|
#include "vmanip"
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) |
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; }
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; }
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; }
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; }
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; }
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; }