ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Functions
container_operator.h File Reference
#include <cassert>
#include <vector>
#include <map>
Include dependency graph for container_operator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T >
std::vector< Toperator+ (const std::vector< T > &x1, const std::vector< T > &x2)
 
template<typename T >
std::vector< Toperator- (const std::vector< T > &x1, const std::vector< T > &x2)
 
template<typename T1 , typename T2 >
std::map< T1, T2 > operator+ (const std::map< T1, T2 > &x1, const std::map< T1, T2 > &x2)
 
template<typename T1 , typename T2 >
std::map< T1, T2 > operator- (const std::map< T1, T2 > &x1, const std::map< T1, T2 > &x2)
 
template<typename T1 , typename T2 >
std::vector< T2 > operator* (const T1 &x1, const std::vector< T2 > &x2)
 
template<typename T1 , typename T21 , typename T22 >
std::map< T21, T22 > operator* (const T1 &x1, const std::map< T21, T22 > &x2)
 

Function Documentation

◆ operator*() [1/2]

template<typename T1 , typename T21 , typename T22 >
std::map< T21, T22 > operator* ( const T1 &  x1,
const std::map< T21, T22 > &  x2 
)

◆ operator*() [2/2]

template<typename T1 , typename T2 >
std::vector< T2 > operator* ( const T1 &  x1,
const std::vector< T2 > &  x2 
)

◆ operator+() [1/2]

template<typename T1 , typename T2 >
std::map< T1, T2 > operator+ ( const std::map< T1, T2 > &  x1,
const std::map< T1, T2 > &  x2 
)

◆ operator+() [2/2]

template<typename T >
std::vector< T > operator+ ( const std::vector< T > &  x1,
const std::vector< T > &  x2 
)

◆ operator-() [1/2]

template<typename T1 , typename T2 >
std::map< T1, T2 > operator- ( const std::map< T1, T2 > &  x1,
const std::map< T1, T2 > &  x2 
)

◆ operator-() [2/2]

template<typename T >
std::vector< T > operator- ( const std::vector< T > &  x1,
const std::vector< T > &  x2 
)