JDFTx  1.2.0
scaled.h File Reference

Template to avoid (delay) scaling operations on linear objects. More...

Go to the source code of this file.

Classes

struct  scaled< T >
 

Functions

template<typename T >
T & operator+= (T &y, const scaled< T > &x)
 
template<typename T >
T & operator-= (T &y, const scaled< T > &x)
 
template<typename T >
operator+ (const scaled< T > &x, const scaled< T > &y)
 
template<typename T >
operator- (const scaled< T > &x, const scaled< T > &y)
 
template<typename T >
scaled< T > operator- (const scaled< T > &x)
 
template<typename T >
scaled< T > operator* (double s, const scaled< T > &x)
 
template<typename T >
scaled< T > operator* (const scaled< T > &x, double s)
 

Detailed Description

Template to avoid (delay) scaling operations on linear objects.