|
LSST Applications g013ef56533+2edba5e46d,g083dd6704c+a047e97985,g199a45376c+0ba108daf9,g1fd858c14a+d594c53611,g210f2d0738+d003cec0be,g25ecf2a47a+204e5a9ad5,g262e1987ae+16552835ac,g29ae962dfc+867dbde878,g2cef7863aa+aef1011c0b,g30d7c61c20+990af31dd2,g35bb328faa+8c5ae1fdc5,g3fd5ace14f+c8e8c50746,g47891489e3+f459a6810c,g53246c7159+8c5ae1fdc5,g54cd7ddccb+890c8e1e5d,g5b326b94bb+01d4acd216,g64539dfbff+d003cec0be,g67b6fd64d1+f459a6810c,g6ebf1fc0d4+8c5ae1fdc5,g74acd417e5+4b21cac47b,g786e29fd12+668abc6043,g87389fa792+8856018cbb,g89139ef638+f459a6810c,g8d7436a09f+b19788b7f5,g8ea07a8fe4+81eaaadc04,g90f42f885a+34c0557caf,g97be763408+3bd86eedd0,g98a1a72a9c+67cf96cfb3,g98df359435+688a06938e,gbf99507273+8c5ae1fdc5,gc2a301910b+d003cec0be,gca7fc764a6+f459a6810c,gd7ef33dd92+f459a6810c,gdab6d2f7ff+4b21cac47b,ge410e46f29+f459a6810c,ge41e95a9f2+d003cec0be,geaed405ab2+e3b4b2a692,gf9a733ac38+8c5ae1fdc5,w.2025.43
LSST Data Management Base Package
|
A factory class for MatrixBuilder, providing more control over workspace memory. More...
#include <MatrixBuilder.h>
Public Types | |
| typedef MatrixBuilderWorkspace< T > | Workspace |
| Associated workspace class. | |
| typedef MatrixBuilder< T > | Builder |
| Associated builder class. | |
Public Member Functions | |
| MatrixBuilderFactory (ndarray::Array< T const, 1, 1 > const &x, ndarray::Array< T const, 1, 1 > const &y, int order) | |
| Create a MatrixBuilder that evaluates a simple non-compound shapelet basis. | |
| MatrixBuilderFactory (ndarray::Array< T const, 1, 1 > const &x, ndarray::Array< T const, 1, 1 > const &y, int order, ShapeletFunction const &psf) | |
| Create a MatrixBuilder that evaluates a simple non-compound shapelet basis after convolving it with a ShapeletFunction. | |
| MatrixBuilderFactory (ndarray::Array< T const, 1, 1 > const &x, ndarray::Array< T const, 1, 1 > const &y, MultiShapeletBasis const &basis) | |
| Create a MatrixBuilder that evaluates a MultiShapeletBasis object. | |
| MatrixBuilderFactory (ndarray::Array< T const, 1, 1 > const &x, ndarray::Array< T const, 1, 1 > const &y, MultiShapeletBasis const &basis, MultiShapeletFunction const &psf) | |
| Create a MatrixBuilder that evaluates a MultiShapeletBasis object after convolving it with a MultiShapeletFunction. | |
| int | getDataSize () const |
| Return the number of data points. | |
| int | getBasisSize () const |
| Return the number of basis elements. | |
| int | computeWorkspace () const |
| Return the size of the workspace needed for this MatrixBuilder, in elements of T. | |
| MatrixBuilder< T > | operator() () const |
| Return a new MatrixBuilder with internal, unshared workspace. | |
| MatrixBuilder< T > | operator() (Workspace &workspace) const |
| Return a new MatrixBuilder using the given workspace. | |
A factory class for MatrixBuilder, providing more control over workspace memory.
To allocate workspace manually for a MatrixBuilder, we use the following pattern:;
Because we aren't doing anything special with the workspace, however, this is actually exactly equivalent to just constructing the MatrixBuilder directly, i.e.:
A more interesting case is if we want to use the same workspace for a pair of MatrixBuilders:
Definition at line 265 of file MatrixBuilder.h.
| typedef MatrixBuilder<T> lsst::shapelet::MatrixBuilderFactory< T >::Builder |
Associated builder class.
Definition at line 269 of file MatrixBuilder.h.
| typedef MatrixBuilderWorkspace<T> lsst::shapelet::MatrixBuilderFactory< T >::Workspace |
Associated workspace class.
Definition at line 268 of file MatrixBuilder.h.
| lsst::shapelet::MatrixBuilderFactory< T >::MatrixBuilderFactory | ( | ndarray::Array< T const, 1, 1 > const & | x, |
| ndarray::Array< T const, 1, 1 > const & | y, | ||
| int | order ) |
Create a MatrixBuilder that evaluates a simple non-compound shapelet basis.
| [in] | x | column positions at which the basis should be evaluated. |
| [in] | y | row positions at which the basis should be evaluated (same size as x). |
| [in] | order | order of the shapelet basis |
| lsst::shapelet::MatrixBuilderFactory< T >::MatrixBuilderFactory | ( | ndarray::Array< T const, 1, 1 > const & | x, |
| ndarray::Array< T const, 1, 1 > const & | y, | ||
| int | order, | ||
| ShapeletFunction const & | psf ) |
Create a MatrixBuilder that evaluates a simple non-compound shapelet basis after convolving it with a ShapeletFunction.
| [in] | x | column positions at which the basis should be evaluated. |
| [in] | y | row positions at which the basis should be evaluated (same size as x). |
| [in] | order | order of the shapelet basis |
| [in] | psf | function to convolve the basis with |
| lsst::shapelet::MatrixBuilderFactory< T >::MatrixBuilderFactory | ( | ndarray::Array< T const, 1, 1 > const & | x, |
| ndarray::Array< T const, 1, 1 > const & | y, | ||
| MultiShapeletBasis const & | basis ) |
Create a MatrixBuilder that evaluates a MultiShapeletBasis object.
| [in] | x | column positions at which the basis should be evaluated. |
| [in] | y | row positions at which the basis should be evaluated (same size as x). |
| [in] | basis | basis object defining the functions the matrix evaluates |
| lsst::shapelet::MatrixBuilderFactory< T >::MatrixBuilderFactory | ( | ndarray::Array< T const, 1, 1 > const & | x, |
| ndarray::Array< T const, 1, 1 > const & | y, | ||
| MultiShapeletBasis const & | basis, | ||
| MultiShapeletFunction const & | psf ) |
Create a MatrixBuilder that evaluates a MultiShapeletBasis object after convolving it with a MultiShapeletFunction.
| [in] | x | column positions at which the basis should be evaluated. |
| [in] | y | row positions at which the basis should be evaluated (same size as x). |
| [in] | basis | basis object defining the functions the matrix evaluates |
| [in] | psf | function to convolve the basis with |
| int lsst::shapelet::MatrixBuilderFactory< T >::computeWorkspace | ( | ) | const |
Return the size of the workspace needed for this MatrixBuilder, in elements of T.
| int lsst::shapelet::MatrixBuilderFactory< T >::getBasisSize | ( | ) | const |
Return the number of basis elements.
| int lsst::shapelet::MatrixBuilderFactory< T >::getDataSize | ( | ) | const |
Return the number of data points.
| MatrixBuilder< T > lsst::shapelet::MatrixBuilderFactory< T >::operator() | ( | ) | const |
Return a new MatrixBuilder with internal, unshared workspace.
| MatrixBuilder< T > lsst::shapelet::MatrixBuilderFactory< T >::operator() | ( | Workspace & | workspace | ) | const |
Return a new MatrixBuilder using the given workspace.