LSSTApplications  18.1.0
LSSTDataManagementBasePackage
Public Member Functions | List of all members
lsst::afw::image::pixel::variance_multiplies< T1 > Struct Template Reference

Calculate the variance when we multiply two Pixels. More...

#include <Pixel.h>

Public Member Functions

T1 operator() (T1 const &x, T1 const &y, T1 const &vx, T1 const &vy) const
 
T1 operator() (T1 const &, T1 const &y, T1 const &vx) const
 

Detailed Description

template<typename T1>
struct lsst::afw::image::pixel::variance_multiplies< T1 >

Calculate the variance when we multiply two Pixels.

Note
We provide a single-operand version for when the right-hand-side of an expression is a scalar, not a masked pixel,

Definition at line 49 of file Pixel.h.

Member Function Documentation

◆ operator()() [1/2]

template<typename T1 >
T1 lsst::afw::image::pixel::variance_multiplies< T1 >::operator() ( T1 const &  x,
T1 const &  y,
T1 const &  vx,
T1 const &  vy 
) const
inline

Definition at line 377 of file Pixel.h.

377  {
378  T1 const x2 = x * x;
379  T1 const y2 = y * y;
380  return x2 * vy + y2 * vx;
381  }
int y
Definition: SpanSet.cc:49
double x

◆ operator()() [2/2]

template<typename T1 >
T1 lsst::afw::image::pixel::variance_multiplies< T1 >::operator() ( T1 const &  ,
T1 const &  y,
T1 const &  vx 
) const
inline

Definition at line 383 of file Pixel.h.

383 { return vx * y * y; }
int y
Definition: SpanSet.cc:49

The documentation for this struct was generated from the following file: