LSST Applications g0603fd7c41+022847dfd1,g0e03ccb3e3+1224bbe97e,g124d44cf3d+f497bfeb17,g180d380827+5d634bbe79,g2079a07aa2+86d27d4dc4,g2305ad1205+696e5f3872,g2bbee38e9b+047b288a59,g337abbeb29+047b288a59,g33d1c0ed96+047b288a59,g3a166c0a6a+047b288a59,g3d1719c13e+f45185db35,g487adcacf7+ae7f9b6dc5,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+248b16177b,g63cd9335cc+585e252eca,g858d7b2824+f45185db35,g991b906543+f45185db35,g99cad8db69+1747e75aa3,g9b9dfce982+78139cbddb,g9ddcbc5298+9a081db1e4,ga1e77700b3+a912195c07,gae0086650b+585e252eca,gb0e22166c9+60f28cb32d,gb23b769143+f45185db35,gb3a676b8dc+b4feba26a1,gb4b16eec92+f82f04eb54,gba4ed39666+c2a2e4ac27,gbb8dafda3b+36bd7b5ba8,gc120e1dc64+6485cba3fb,gc28159a63d+047b288a59,gc3e9b769f7+dcad4ace9a,gcf0d15dbbd+78139cbddb,gdaeeff99f8+f9a426f77a,ge79ae78c31+047b288a59,w.2024.19
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
_ellipses::Ellipse::Convolution Class Referencefinal

A temporary-only expression object for ellipse convolution. More...

#include <Convolution.h>

Public Types

using DerivativeMatrix = Eigen::Matrix<double, 5, 5>
 Matrix type for derivative with respect to input ellipse parameters.
 

Public Member Functions

 Convolution (Ellipse &self, Ellipse const &other)
 Standard constructor.
 
std::shared_ptr< Ellipse > copy () const
 Return a new convolved ellipse.
 
void inPlace ()
 Convolve the ellipse in-place.
 
DerivativeMatrix d () const
 Return the derivative of convolved ellipse with respect to self.
 

Public Attributes

Ellipse & self
 
Ellipse const & other
 

Detailed Description

A temporary-only expression object for ellipse convolution.

Definition at line 70 of file Convolution.h.

Member Typedef Documentation

◆ DerivativeMatrix

using _ellipses::Ellipse::Convolution::DerivativeMatrix = Eigen::Matrix<double, 5, 5>

Matrix type for derivative with respect to input ellipse parameters.

Definition at line 73 of file Convolution.h.

Constructor & Destructor Documentation

◆ Convolution()

_ellipses::Ellipse::Convolution::Convolution ( Ellipse & self,
Ellipse const & other )
inline

Standard constructor.

Definition at line 76 of file Convolution.h.

76: self(self), other(other) {}

Member Function Documentation

◆ copy()

std::shared_ptr< Ellipse > _ellipses::Ellipse::Convolution::copy ( ) const

Return a new convolved ellipse.

Definition at line 58 of file Convolution.cc.

58 {
59 return std::make_shared<Ellipse>(
60 self.getCore().convolve(other.getCore()).copy(),
61 lsst::geom::Point2D(self.getCenter() + lsst::geom::Extent2D(other.getCenter())));
62}

◆ d()

Ellipse::Convolution::DerivativeMatrix _ellipses::Ellipse::Convolution::d ( ) const

Return the derivative of convolved ellipse with respect to self.

Definition at line 69 of file Convolution.cc.

69 {
70 Ellipse::Convolution::DerivativeMatrix result = Ellipse::Convolution::DerivativeMatrix::Identity();
71 result.block<3, 3>(0, 0) = self.getCore().convolve(other.getCore()).d();
72 return result;
73}
py::object result
Definition _schema.cc:429
DerivativeMatrix d() const
Return the derivative of convolved ellipse with respect to self.

◆ inPlace()

void _ellipses::Ellipse::Convolution::inPlace ( )

Convolve the ellipse in-place.

Definition at line 64 of file Convolution.cc.

64 {
65 self.getCore().convolve(other.getCore()).inPlace();
66 self.setCenter(self.getCenter() + lsst::geom::Extent2D(other.getCenter()));
67}

Member Data Documentation

◆ other

Ellipse const& _ellipses::Ellipse::Convolution::other

Definition at line 88 of file Convolution.h.

◆ self

Ellipse& _ellipses::Ellipse::Convolution::self

Definition at line 87 of file Convolution.h.


The documentation for this class was generated from the following files: