ampsci
c++ program for high-precision atomic structure calculations of single-valence systems
Functions
qip::overloads Namespace Reference

namespace qip::overloads provides operator overloads for std::vector More...

Functions

template<typename T >
std::vector< T > & operator+= (std::vector< T > &a, const std::vector< T > &b)
 Provide addition of two vectors:
 
template<typename T >
std::vector< T > operator+ (std::vector< T > a, const std::vector< T > &b)
 
template<typename T >
std::vector< T > & operator-= (std::vector< T > &a, const std::vector< T > &b)
 
template<typename T >
std::vector< T > operator- (std::vector< T > a, const std::vector< T > &b)
 
template<typename T , typename U >
std::vector< T > & operator*= (std::vector< T > &v, U x)
 
template<typename T , typename U >
std::vector< T > operator* (std::vector< T > v, U x)
 
template<typename T , typename U >
std::vector< T > operator* (U x, std::vector< T > v)
 
template<typename T , typename U >
std::vector< T > & operator/= (std::vector< T > &v, U x)
 
template<typename T , typename U >
std::vector< T > operator/ (std::vector< T > v, U x)
 
template<typename T , typename U >
std::vector< T > & operator+= (std::vector< T > &v, U x)
 
template<typename T , typename U >
std::vector< T > operator+ (std::vector< T > v, U x)
 
template<typename T , typename U >
std::vector< T > operator+ (U x, std::vector< T > v)
 
template<typename T , typename U >
std::vector< T > & operator-= (std::vector< T > &v, U x)
 
template<typename T , typename U >
std::vector< T > operator- (std::vector< T > v, U x)
 
template<typename T , typename U >
std::vector< T > operator- (U x, std::vector< T > v)
 
template<typename T , typename U >
std::vector< T > operator/ (U x, std::vector< T > v)
 
template<typename T >
std::vector< T > & operator*= (std::vector< T > &a, const std::vector< T > &b)
 In-place element-wise multiplication: a*=b => a_i := a_i * b_i.
 
template<typename T >
std::vector< T > operator* (std::vector< T > a, const std::vector< T > &b)
 Element-wise multiplication: c=a*b => c_i = a_i * b_i.
 
template<typename T >
std::vector< T > & operator/= (std::vector< T > &a, const std::vector< T > &b)
 In-place element-wise division: a/=b => a_i := a_i / b_i.
 
template<typename T >
std::vector< T > operator/ (std::vector< T > a, const std::vector< T > &b)
 Element-wise multiplication: c=a/b => c_i = a_i / b_i.
 

Detailed Description

namespace qip::overloads provides operator overloads for std::vector