LSST Applications g04e9c324dd+8c5ae1fdc5,g134cb467dc+b203dec576,g18429d2f64+358861cd2c,g199a45376c+0ba108daf9,g1fd858c14a+dd066899e3,g262e1987ae+ebfced1d55,g29ae962dfc+72fd90588e,g2cef7863aa+aef1011c0b,g35bb328faa+8c5ae1fdc5,g3fd5ace14f+b668f15bc5,g4595892280+3897dae354,g47891489e3+abcf9c3559,g4d44eb3520+fb4ddce128,g53246c7159+8c5ae1fdc5,g67b6fd64d1+abcf9c3559,g67fd3c3899+1f72b5a9f7,g74acd417e5+cb6b47f07b,g786e29fd12+668abc6043,g87389fa792+8856018cbb,g89139ef638+abcf9c3559,g8d7436a09f+bcf525d20c,g8ea07a8fe4+9f5ccc88ac,g90f42f885a+6054cc57f1,g97be763408+06f794da49,g9dd6db0277+1f72b5a9f7,ga681d05dcb+7e36ad54cd,gabf8522325+735880ea63,gac2eed3f23+abcf9c3559,gb89ab40317+abcf9c3559,gbf99507273+8c5ae1fdc5,gd8ff7fe66e+1f72b5a9f7,gdab6d2f7ff+cb6b47f07b,gdc713202bf+1f72b5a9f7,gdfd2d52018+8225f2b331,ge365c994fd+375fc21c71,ge410e46f29+abcf9c3559,geaed405ab2+562b3308c0,gf9a733ac38+8c5ae1fdc5,w.2025.35
LSST Data Management Base Package
Loading...
Searching...
No Matches
ProductBoundedField.h
Go to the documentation of this file.
1// -*- LSST-C++ -*-
2/*
3 * LSST Data Management System
4 * Copyright 2008-2014 LSST Corporation.
5 *
6 * This product includes software developed by the
7 * LSST Project (http://www.lsst.org/).
8 *
9 * This program is free software: you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation, either version 3 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the LSST License Statement and
20 * the GNU General Public License along with this program. If not,
21 * see <http://www.lsstcorp.org/LegalNotices/>.
22 */
23
24#ifndef LSST_AFW_MATH_ProductBoundedField_h_INCLUDED
25#define LSST_AFW_MATH_ProductBoundedField_h_INCLUDED
26
28
29namespace lsst {
30namespace afw {
31namespace math {
32
36class ProductBoundedField final : public table::io::PersistableFacade<ProductBoundedField>,
37 public BoundedField {
38public:
39
51
57
59 double evaluate(lsst::geom::Point2D const& position) const override;
60
62 ndarray::Array<double, 1, 1> evaluate(ndarray::Array<double const, 1> const& x,
63 ndarray::Array<double const, 1> const& y) const override;
64
66
71 bool isPersistable() const noexcept override;
72
74 std::shared_ptr<BoundedField> operator*(double const scale) const override;
75
77 bool operator==(BoundedField const& rhs) const override;
78
79protected:
80
81 std::string getPersistenceName() const override;
82
83 std::string getPythonModule() const override;
84
85 void write(OutputArchiveHandle& handle) const override;
86
87private:
88
89 std::string toString() const override;
90
91 std::vector<std::shared_ptr<BoundedField const>> _factors;
92};
93} // namespace math
94} // namespace afw
95} // namespace lsst
96
97#endif // !LSST_AFW_MATH_ProductBoundedField_h_INCLUDED
BoundedField(BoundedField const &)=default
virtual double evaluate(lsst::geom::Point2D const &position) const =0
Evaluate the field at the given point.
ProductBoundedField(std::vector< std::shared_ptr< BoundedField const > > const &factors)
Construct from a sequence of BoundedField factors.
std::string toString() const override
bool isPersistable() const noexcept override
ProductBoundedField is persistable if and only if all of its factors are.
ProductBoundedField & operator=(ProductBoundedField const &)=delete
ProductBoundedField(ProductBoundedField const &)
void write(OutputArchiveHandle &handle) const override
Write the object to one or more catalogs.
ProductBoundedField & operator=(ProductBoundedField &&)=delete
ProductBoundedField(ProductBoundedField &&)
std::string getPersistenceName() const override
Return the unique name used to persist this object and look up its factory.
double evaluate(lsst::geom::Point2D const &position) const override
Evaluate the field at the given point.
std::string getPythonModule() const override
Return the fully-qualified Python module that should be imported to guarantee that its factory is reg...
A CRTP facade class for subclasses of Persistable.
io::OutputArchiveHandle OutputArchiveHandle
Point< double, 2 > Point2D
Definition Point.h:324
STL namespace.