LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
QuadExpr.h File Reference
#include <iosfwd>

Go to the source code of this file.

Classes

class  QuadExpr
 

Functions

QuadExpr operator+ (double v, const QuadExpr &e)
 
QuadExpr operator- (double v, const QuadExpr &e)
 
QuadExpr operator* (double v, const QuadExpr &e)
 
std::ostream & operator<< (std::ostream &, const QuadExpr &)
 

Function Documentation

QuadExpr operator+ ( double  v,
const QuadExpr e 
)
inline
QuadExpr operator- ( double  v,
const QuadExpr e 
)
inline

Definition at line 40 of file QuadExpr.h.

References e, and QuadExpr::QuadExpr().

Referenced by lar::sparse_vector< T >::const_iterator::operator++(), and lar::sparse_vector< T >::iterator::operator-().

41 {
42  return QuadExpr(v) - e;
43 }
Float_t e
Definition: plot.C:35
std::ostream& operator<< ( std::ostream &  ,
const QuadExpr  
)

Definition at line 72 of file QuadExpr.cxx.

References QuadExpr::Constant(), QuadExpr::Linear(), and QuadExpr::Quadratic().

Referenced by operator*().

73 {
74  os << e.Quadratic() << "*x^2 + " << e.Linear() << "*x + " << e.Constant();
75  return os;
76 }
Float_t e
Definition: plot.C:35