LSSTApplications
18.0.0+106,18.0.0+50,19.0.0,19.0.0+1,19.0.0+10,19.0.0+11,19.0.0+13,19.0.0+17,19.0.0+2,19.0.0-1-g20d9b18+6,19.0.0-1-g425ff20,19.0.0-1-g5549ca4,19.0.0-1-g580fafe+6,19.0.0-1-g6fe20d0+1,19.0.0-1-g7011481+9,19.0.0-1-g8c57eb9+6,19.0.0-1-gb5175dc+11,19.0.0-1-gdc0e4a7+9,19.0.0-1-ge272bc4+6,19.0.0-1-ge3aa853,19.0.0-10-g448f008b,19.0.0-12-g6990b2c,19.0.0-2-g0d9f9cd+11,19.0.0-2-g3d9e4fb2+11,19.0.0-2-g5037de4,19.0.0-2-gb96a1c4+3,19.0.0-2-gd955cfd+15,19.0.0-3-g2d13df8,19.0.0-3-g6f3c7dc,19.0.0-4-g725f80e+11,19.0.0-4-ga671dab3b+1,19.0.0-4-gad373c5+3,19.0.0-5-ga2acb9c+2,19.0.0-5-gfe96e6c+2,w.2020.01
LSSTDataManagementBasePackage
|
Conversions between shapelet basis types. More...
#include <ConversionMatrix.h>
Public Member Functions | |
Eigen::MatrixXd | getBlock (int n) const |
Return a block of the block-diagonal conversion matrix. More... | |
Eigen::MatrixXd | buildDenseMatrix () const |
Construct the full conversion matrix (should just be used for testing). More... | |
void | multiplyOnLeft (ndarray::Array< double, 1 > const &array) const |
Multiply the given array by the conversion matrix on the left in-place. More... | |
void | multiplyOnRight (ndarray::Array< double, 1 > const &array) const |
Multiply the given array by the conversion matrix on the right in-place. More... | |
ConversionMatrix (BasisTypeEnum input, BasisTypeEnum output, int order) | |
Construct a conversion matrix that maps the input basis to the output basis. More... | |
Static Public Member Functions | |
static void | convertCoefficientVector (ndarray::Array< double, 1 > const &array, BasisTypeEnum input, BasisTypeEnum output, int order) |
Convert a coefficient vector between basis types in-place. More... | |
static void | convertOperationVector (ndarray::Array< double, 1 > const &array, BasisTypeEnum input, BasisTypeEnum output, int order) |
Convert an operation (evaluation, integration) vector between basis types in-place. More... | |
Conversions between shapelet basis types.
The basis conversion matrix is block-diagonal and only needs to be computed once, so we cache the blocks in a hidden singleton and provide operations that act on shapelet matrices while taking advantage of the sparseness of the conversion.
Definition at line 42 of file ConversionMatrix.h.
|
explicit |
Construct a conversion matrix that maps the input basis to the output basis.
Eigen::MatrixXd lsst::shapelet::ConversionMatrix::buildDenseMatrix | ( | ) | const |
Construct the full conversion matrix (should just be used for testing).
|
static |
Convert a coefficient vector between basis types in-place.
|
static |
Convert an operation (evaluation, integration) vector between basis types in-place.
Eigen::MatrixXd lsst::shapelet::ConversionMatrix::getBlock | ( | int | n | ) | const |
Return a block of the block-diagonal conversion matrix.
void lsst::shapelet::ConversionMatrix::multiplyOnLeft | ( | ndarray::Array< double, 1 > const & | array | ) | const |
Multiply the given array by the conversion matrix on the left in-place.
void lsst::shapelet::ConversionMatrix::multiplyOnRight | ( | ndarray::Array< double, 1 > const & | array | ) | const |
Multiply the given array by the conversion matrix on the right in-place.