LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
LSST Data Management Base Package
|
A helper class ChebyshevBoundedField, for mapping trapezoidal matrices to 1-d arrays. More...
#include <TrapezoidalPacker.h>
Public Member Functions | |
TrapezoidalPacker (ChebyshevBoundedFieldControl const &ctrl) | |
void | pack (ndarray::Array< double, 1, 1 > const &out, ndarray::Array< double const, 1, 1 > const &tx, ndarray::Array< double const, 1, 1 > const &ty) const |
void | pack (ndarray::Array< double, 1, 1 > const &out, ndarray::Array< double const, 2, 2 > const &unpacked) const |
void | unpack (ndarray::Array< double, 2, 2 > const &out, ndarray::Array< double const, 1, 1 > const &packed) const |
ndarray::Array< double, 2, 2 > | unpack (ndarray::Array< double const, 1, 1 > const &packed) const |
Public Attributes | |
int | nx |
int | ny |
int | m |
int | size |
A helper class ChebyshevBoundedField, for mapping trapezoidal matrices to 1-d arrays.
This class is not Swigged, and should not be included by any other .h files (including lsst/afw/math/detail.h); it's for internal use by ChebyshevBoundedField only, and it's only in a header file instead of that .cc file only so it can be unit tested.
We characterize the matrices by their number of columns (nx) and rows (ny), and the number of complete rows minus one (m).
This splits up the matrix into a rectangular part, in which the number of columns is the same for each row, and a wide trapezoidal or triangular part, in which the number of columns decreases by one for each row.
Here are some examples of how this class handles different kinds of matrices:
A wide trapezoidal matrix with orderX=4, orderY=3: nx=5, ny=4, m=0
0 1 2 3 4 5 6 7 8 9 10 11 12 13
A tall trapezoidal matrix with orderX=2, orderY=4 nx=3, ny=5, m=2
0 1 2 3 4 5 6 7 8 9 10 11
A triangular matrix with orderX=3, orderY=3 nx=4, ny=5, m=0
0 1 2 3 4 5 6 7 8 9
A wide rectangular matrix with orderX=3, orderY=2 nx=4, ny=3, m=3
0 1 2 3 4 5 6 7 8 9 10 11
A tall rectangular matrix with orderX=2, orderY=3 nx=3, ny=4, m=4
0 1 2 3 4 5 6 7 8 9 10 11
Definition at line 90 of file TrapezoidalPacker.h.
|
explicit |
Definition at line 31 of file TrapezoidalPacker.cc.
void lsst::afw::math::detail::TrapezoidalPacker::pack | ( | ndarray::Array< double, 1, 1 > const & | out, |
ndarray::Array< double const, 1, 1 > const & | tx, | ||
ndarray::Array< double const, 1, 1 > const & | ty ) const |
Definition at line 47 of file TrapezoidalPacker.cc.
void lsst::afw::math::detail::TrapezoidalPacker::pack | ( | ndarray::Array< double, 1, 1 > const & | out, |
ndarray::Array< double const, 2, 2 > const & | unpacked ) const |
Definition at line 63 of file TrapezoidalPacker.cc.
ndarray::Array< double, 2, 2 > lsst::afw::math::detail::TrapezoidalPacker::unpack | ( | ndarray::Array< double const, 1, 1 > const & | packed | ) | const |
Definition at line 98 of file TrapezoidalPacker.cc.
void lsst::afw::math::detail::TrapezoidalPacker::unpack | ( | ndarray::Array< double, 2, 2 > const & | out, |
ndarray::Array< double const, 1, 1 > const & | packed ) const |
Definition at line 80 of file TrapezoidalPacker.cc.
int lsst::afw::math::detail::TrapezoidalPacker::m |
Definition at line 106 of file TrapezoidalPacker.h.
int lsst::afw::math::detail::TrapezoidalPacker::nx |
Definition at line 104 of file TrapezoidalPacker.h.
int lsst::afw::math::detail::TrapezoidalPacker::ny |
Definition at line 105 of file TrapezoidalPacker.h.
int lsst::afw::math::detail::TrapezoidalPacker::size |
Definition at line 107 of file TrapezoidalPacker.h.