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 > | |
T | operator+ (const scaled< T > &x, const scaled< T > &y) |
template<typename T > | |
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) |
Template to avoid (delay) scaling operations on linear objects.