Namespaces | |
Private | |
Functions | |
template<typename T > | |
Private::AbsReturnType< T >::type | absDifference (const T &v1, const T &v2) |
template<typename T > | |
Private::AbsReturnType< T >::type | absValue (const T &v1) |
template<typename T > | |
void | clearBuffer (T *buf, const unsigned long len) |
bool | closeWithinTolerance (const double &a, const double &b, const double &tol) |
template<typename Histo > | |
void | convertHistoToDensity (Histo *histogram, bool knownNonNegative=false) |
UniformAxis | convertToGridAxis (const HistoAxis &histoAxis) |
GridAxis | convertToGridAxis (const NUHistoAxis &histoAxis) |
NUHistoAxis | convertToHistoAxis (const GridAxis &gridAxis, double xMin) |
HistoAxis | convertToHistoAxis (const UniformAxis &gridAxis) |
template<typename Histo > | |
std::vector< CircularMapper1d > | convolutionHistoMap (const Histo &histo, bool doubleDataRange) |
template<typename T1 , typename T2 > | |
void | copyBuffer (T1 *dest, const T2 *source, const unsigned long len) |
template<typename Histo > | |
std::vector< LinearMapper1d > | densityScanHistoMap (const Histo &histo) |
template<typename T > | |
void | destroyBuffer (T *thisBuffer, const T *stackBuffer) |
ArrayShape | doubleShape (const ArrayShape &inputShape) |
ArrayShape | halfShape (const ArrayShape &inputShape) |
template<typename T > | |
T | interpolate_cubic (const double x, const T &f0, const T &f1, const T &f2, const T &f3) |
template<typename T > | |
T | interpolate_linear (const double x, const T &f0, const T &f1) |
template<typename T > | |
T | interpolate_quadratic (const double x, const T &f0, const T &f1, const T &f2) |
template<typename Float , class Axis > | |
Float | interpolateHistoND (const HistoND< Float, Axis > &histo, const double *coords, unsigned coordsDim, unsigned interpolationDegree) |
template<typename Float , class Axis > | |
Float | interpolateHistoND (const HistoND< Float, Axis > &histo, double x0, double x1, double x2, double x3, double x4, double x5, double x6, double x7, double x8, double x9, unsigned interpolationDegree) |
template<typename Float , class Axis > | |
Float | interpolateHistoND (const HistoND< Float, Axis > &histo, double x0, double x1, double x2, double x3, double x4, double x5, double x6, double x7, double x8, unsigned interpolationDegree) |
template<typename Float , class Axis > | |
Float | interpolateHistoND (const HistoND< Float, Axis > &histo, double x0, double x1, double x2, double x3, double x4, double x5, double x6, double x7, unsigned interpolationDegree) |
template<typename Float , class Axis > | |
Float | interpolateHistoND (const HistoND< Float, Axis > &histo, double x0, double x1, double x2, double x3, double x4, double x5, double x6, unsigned interpolationDegree) |
template<typename Float , class Axis > | |
Float | interpolateHistoND (const HistoND< Float, Axis > &histo, double x0, double x1, double x2, double x3, double x4, double x5, unsigned interpolationDegree) |
template<typename Float , class Axis > | |
Float | interpolateHistoND (const HistoND< Float, Axis > &histo, double x0, double x1, double x2, double x3, double x4, unsigned interpolationDegree) |
template<typename Float , class Axis > | |
Float | interpolateHistoND (const HistoND< Float, Axis > &histo, double x0, double x1, double x2, double x3, unsigned interpolationDegree) |
template<typename Float , class Axis > | |
Float | interpolateHistoND (const HistoND< Float, Axis > &histo, double x0, double x1, double x2, unsigned interpolationDegree) |
template<typename Float , class Axis > | |
Float | interpolateHistoND (const HistoND< Float, Axis > &histo, double x0, double x1, unsigned interpolationDegree) |
template<typename Float , class Axis > | |
Float | interpolateHistoND (const HistoND< Float, Axis > &histo, double x0, unsigned interpolationDegree) |
template<typename T > | |
unsigned | interpolation_coefficients (T *buffer, unsigned bufLen, const T &f0, const T &f1) |
template<typename T > | |
unsigned | interpolation_coefficients (T *buffer, unsigned bufLen, const T &f0, const T &f1, const T &f2) |
template<typename T > | |
unsigned | interpolation_coefficients (T *buffer, unsigned bufLen, const T &f0, const T &f1, const T &f2, const T &f3) |
template<class Iter > | |
bool | isMonotonous (Iter const begin, Iter const end) |
template<class Iter > | |
bool | isNonDecreasing (Iter begin, Iter const end) |
template<class Iter > | |
bool | isNonIncreasing (Iter begin, Iter const end) |
template<class Iter > | |
bool | isStrictlyDecreasing (Iter begin, Iter const end) |
template<class Iter > | |
bool | isStrictlyIncreasing (Iter begin, Iter const end) |
template<class Iter > | |
bool | isStrictlyMonotonous (Iter const begin, Iter const end) |
bool | isSubShape (const ArrayShape &sh1, const ArrayShape &sh2) |
template<typename T > | |
T * | makeBuffer (unsigned sizeNeeded, T *stackBuffer, unsigned sizeofStackBuffer) |
ArrayShape | makeShape () |
ArrayShape | makeShape (const unsigned *indices, unsigned nIndices) |
ArrayShape | makeShape (unsigned i0) |
ArrayShape | makeShape (unsigned i0, unsigned i1) |
ArrayShape | makeShape (unsigned i0, unsigned i1, unsigned i2) |
ArrayShape | makeShape (unsigned i0, unsigned i1, unsigned i2, unsigned i3) |
ArrayShape | makeShape (unsigned i0, unsigned i1, unsigned i2, unsigned i3, unsigned i4) |
ArrayShape | makeShape (unsigned i0, unsigned i1, unsigned i2, unsigned i3, unsigned i4, unsigned i5) |
ArrayShape | makeShape (unsigned i0, unsigned i1, unsigned i2, unsigned i3, unsigned i4, unsigned i5, unsigned i6) |
ArrayShape | makeShape (unsigned i0, unsigned i1, unsigned i2, unsigned i3, unsigned i4, unsigned i5, unsigned i6, unsigned i7) |
ArrayShape | makeShape (unsigned i0, unsigned i1, unsigned i2, unsigned i3, unsigned i4, unsigned i5, unsigned i6, unsigned i7, unsigned i8) |
ArrayShape | makeShape (unsigned i0, unsigned i1, unsigned i2, unsigned i3, unsigned i4, unsigned i5, unsigned i6, unsigned i7, unsigned i8, unsigned i9) |
template<typename Num1 , unsigned Len1, unsigned Dim1, typename Num2 , unsigned Len2, unsigned Dim2> | |
void | rescanArray (const ArrayND< Num1, Len1, Dim1 > &from, ArrayND< Num2, Len2, Dim2 > *to, unsigned interpolationDegree=0) |
template<typename T1 , typename T2 > | |
void | transposeBuffer (T1 *dest, const T2 *source, const unsigned long dim) |
template<typename T1 , typename T2 > | |
void | transposeBuffer (T1 *dest, const T2 *source, const unsigned long M, const unsigned long N) |
typedef std::vector<unsigned> npstat::ArrayShape |
This type will be used to specify array length in each dimension
Definition at line 21 of file ArrayShape.h.
typedef StorableHistoNDFunctor<double, DualHistoAxis> npstat::DoubleHistoNDFunctor |
Definition at line 18 of file HistoNDFunctorInstances.h.
typedef StorableInterpolationFunctor<double, DualAxis> npstat::DoubleInterpolationFunctor |
Definition at line 19 of file InterpolationFunctorInstances.h.
typedef StorableHistoNDFunctor<double, NUHistoAxis> npstat::DoubleNUHistoNDFunctor |
Definition at line 22 of file HistoNDFunctorInstances.h.
typedef StorableInterpolationFunctor<double, GridAxis> npstat::DoubleNUInterpolationFunctor |
Definition at line 23 of file InterpolationFunctorInstances.h.
typedef StorableHistoNDFunctor<double, HistoAxis> npstat::DoubleUAHistoNDFunctor |
Definition at line 20 of file HistoNDFunctorInstances.h.
typedef StorableInterpolationFunctor<double, UniformAxis> npstat::DoubleUAInterpolationFunctor |
Definition at line 21 of file InterpolationFunctorInstances.h.
typedef StorableHistoNDFunctor<float, DualHistoAxis> npstat::FloatHistoNDFunctor |
Definition at line 24 of file HistoNDFunctorInstances.h.
typedef StorableInterpolationFunctor<float, DualAxis> npstat::FloatInterpolationFunctor |
Definition at line 25 of file InterpolationFunctorInstances.h.
typedef StorableHistoNDFunctor<float, NUHistoAxis> npstat::FloatNUHistoNDFunctor |
Definition at line 28 of file HistoNDFunctorInstances.h.
typedef StorableInterpolationFunctor<float, GridAxis> npstat::FloatNUInterpolationFunctor |
Definition at line 29 of file InterpolationFunctorInstances.h.
typedef StorableHistoNDFunctor<float, HistoAxis> npstat::FloatUAHistoNDFunctor |
Definition at line 26 of file HistoNDFunctorInstances.h.
Definition at line 27 of file InterpolationFunctorInstances.h.
typedef gs::StaticReader<StorableMultivariateFunctorReader> npstat::StaticStorableMultivariateFunctorReader |
The reader factory for descendants of StorableMultivariateFunctor
Definition at line 30 of file StorableMultivariateFunctorReader.h.
|
inline |
Absolute value of the difference between two numbers. Works for all standard numeric types, including unsigned and complex.
Definition at line 73 of file absDifference.h.
References dumpMFGeometry_cfg::delta.
Referenced by npstat::ArrayND< Num1, Len1, Dim1 >::isClose(), npstat::ArrayND< Num1, Len1, Dim1 >::makeCopulaSteps(), and npstat::ArrayND< Num1, Len1, Dim1 >::maxAbsDifference().
|
inline |
Absolute value of a number. Works for all standard numeric types, including unsigned and complex.
Definition at line 82 of file absDifference.h.
References relativeConstraints::value.
Referenced by npstat::ArrayND< Num1, Len1, Dim1 >::sumsq().
|
inline |
Clear a buffer (set all elements to the value produced by the default constructor)
Definition at line 86 of file allocators.h.
References cms::cuda::assert(), visDQMUpload::buf, and mps_fire::i.
Referenced by npstat::ArrayND< Num1, Len1, Dim1 >::ArrayND(), npstat::ArrayND< Num1, Len1, Dim1 >::exportSubrange(), npstat::ArrayND< Num1, Len1, Dim1 >::importSubrange(), and npstat::ArrayND< Num1, Len1, Dim1 >::rotate().
|
inline |
Check if two doubles are within certain relative tolerance from each other. The "tol" argument which specifies the tolerance must be non-negative.
Definition at line 25 of file closeWithinTolerance.h.
References a, b, and SiStripPI::max.
Referenced by npstat::UniformAxis::isClose(), npstat::NUHistoAxis::isClose(), npstat::GridAxis::isClose(), and npstat::HistoAxis::isClose().
void npstat::convertHistoToDensity | ( | Histo * | histogram, |
bool | knownNonNegative = false |
||
) |
Reset negative histogram bins to zero and then divide histogram bin contents by the histogram integral. If the "knownNonNegative" argument is true, it will be assumed that there are no negative bins, and their explicit reset is unnecessary.
This function will throw npstat::NpstatRuntimeError in case the histogram is empty after all negative bins are reset.
This function is not a member of the HistoND class itself because these operations do not necessarily make sense for all bin types. Making such operation a member would make creation of HistoND scripting API (e.g., for python) more difficult.
Definition at line 3533 of file HistoND.h.
References cms::cuda::assert().
UniformAxis npstat::convertToGridAxis | ( | const HistoAxis & | histoAxis | ) |
Convert uniform histogram to uniform grid axis axis
Definition at line 15 of file convertAxis.cc.
References npstat::HistoAxis::binCenter(), npstat::HistoAxis::label(), seedmultiplicitymonitor_newtracking_cfi::nBins, npstat::HistoAxis::nBins(), TrackerOfflineValidation_Dqm_cff::xmax, and TrackerOfflineValidation_Dqm_cff::xmin.
GridAxis npstat::convertToGridAxis | ( | const NUHistoAxis & | histoAxis | ) |
Note that conversion from non-uniform histogram axis into the grid axis is always possible, but it is loosing information (we are writing the positions of bin centers only, not edges)
Definition at line 42 of file convertAxis.cc.
References npstat::NUHistoAxis::binCenter(), mps_fire::i, npstat::NUHistoAxis::label(), seedmultiplicitymonitor_newtracking_cfi::nBins, and npstat::NUHistoAxis::nBins().
NUHistoAxis npstat::convertToHistoAxis | ( | const GridAxis & | gridAxis, |
double | xMin | ||
) |
The conversion from non-uniform grid axis to non-uniform histogram axis is only unambiguous when some additional info is available. Here, in particular, we are asking for the position of the axis minimum. This function will throw npstat::NpstatInvalidArgument in case the conversion is impossible.
Definition at line 23 of file convertAxis.cc.
References npstat::GridAxis::coordinate(), mps_fire::i, npstat::GridAxis::label(), npstat::GridAxis::nCoords(), mitigatedMETSequence_cff::U, and photonAnalyzer_cfi::xMin.
HistoAxis npstat::convertToHistoAxis | ( | const UniformAxis & | gridAxis | ) |
Convert uniform grid axis to uniform histogram axis
Definition at line 6 of file convertAxis.cc.
References npstat::UniformAxis::label(), npstat::UniformAxis::max(), npstat::UniformAxis::min(), seedmultiplicitymonitor_newtracking_cfi::nBins, npstat::UniformAxis::nCoords(), mitigatedMETSequence_cff::U, TrackerOfflineValidation_Dqm_cff::xmax, and TrackerOfflineValidation_Dqm_cff::xmin.
std::vector< CircularMapper1d > npstat::convolutionHistoMap | ( | const Histo & | histo, |
bool | doubleDataRange | ||
) |
Generate a density scanning map for subsequent use with the "DensityScanND" template when a density is to be convolved with the histogram data. Only histograms with uniform binning can be used here.
The "doubleDataRange" should be set "true" in case the data will be mirrored (or just empty range added) to avoid circular spilling after convolution.
Definition at line 3554 of file HistoND.h.
References ztail::d, timingPdfMaker::histo, mps_fire::i, and mps_fire::result.
|
inline |
Copy a buffer (with possible type conversion on the fly)
Definition at line 38 of file allocators.h.
References cms::cuda::assert(), mps_fire::dest, mps_fire::i, and source.
Referenced by npstat::ArrayND< Num1, Len1, Dim1 >::ArrayND(), npstat::ArrayND< Num1, Len1, Dim1 >::dot(), npstat::ArrayND< Num1, Len1, Dim1 >::operator=(), npstat::ArrayND< Num1, Len1, Dim1 >::setData(), and npstat::ArrayND< Num1, Len1, Dim1 >::transpose().
std::vector< LinearMapper1d > npstat::densityScanHistoMap | ( | const Histo & | histo | ) |
Generate a density scanning map for subsequent use with the "DensityScanND" template. Naturally, only histograms with uniform binning can be used here.
Definition at line 3542 of file HistoND.h.
References ztail::d, timingPdfMaker::histo, mps_fire::i, visualization-live-secondInstance_cfg::m, and mps_fire::result.
Function for freeing memory buffers allocated by "makeBuffer"
Definition at line 31 of file allocators.h.
Referenced by npstat::ArrayND< Num1, Len1, Dim1 >::addToProjection(), npstat::ArrayND< Num1, Len1, Dim1 >::contract(), npstat::ArrayND< Num1, Len1, Dim1 >::dot(), npstat::ArrayND< Num1, Len1, Dim1 >::functorFill(), npstat::ArrayND< Num1, Len1, Dim1 >::processSubrange(), npstat::ArrayND< Num1, Len1, Dim1 >::project(), npstat::ArrayND< Num1, Len1, Dim1 >::subtractFromProjection(), npstat::ArrayND< Num1, Len1, Dim1 >::transpose(), npstat::ArrayND< Num1, Len1, Dim1 >::uninitialize(), and npstat::ArrayND< Num1, Len1, Dim1 >::~ArrayND().
ArrayShape npstat::doubleShape | ( | const ArrayShape & | inputShape | ) |
Multiply the sise in each dimension by 2
Definition at line 148 of file ArrayShape.cc.
References mps_fire::i, alignCSCRings::s, and mitigatedMETSequence_cff::U.
Referenced by npstat::ArrayND< Num1, Len1, Dim1 >::multiMirror().
ArrayShape npstat::halfShape | ( | const ArrayShape & | inputShape | ) |
Divide the size in each dimension by 2 (generate dynamic fault if odd)
Definition at line 156 of file ArrayShape.cc.
References mps_fire::i, alignCSCRings::s, and mitigatedMETSequence_cff::U.
|
inline |
Cubic interpolation. Assume that the function values are given at 0, 1, 2, and 3.
Definition at line 44 of file interpolate.h.
References DeadROC_duringRun::f1, DeadROC_duringRun::f2, and interpolate_linear().
Referenced by npstat::ArrayND< Num1, Len1, Dim1 >::interpolateLoop().
|
inline |
Linear interpolation. Assumes that the function values are given at 0 and 1.
Definition at line 23 of file interpolate.h.
References PVValHelper::dx, and DeadROC_duringRun::f1.
Referenced by interpolate_cubic(), and npstat::ArrayND< Num1, Len1, Dim1 >::interpolateLoop().
|
inline |
Quadratic interpolation. Assume that the function values are given at 0, 1, and 2.
Definition at line 33 of file interpolate.h.
References PVValHelper::dx, DeadROC_duringRun::f1, and DeadROC_duringRun::f2.
Referenced by npstat::ArrayND< Num1, Len1, Dim1 >::interpolateLoop().
Float npstat::interpolateHistoND | ( | const HistoND< Float, Axis > & | histo, |
const double * | coords, | ||
unsigned | coordsDim, | ||
unsigned | interpolationDegree | ||
) |
The interpolation degree in this method can be set to 0, 1, or 3 which results, respectively, in closest bin lookup, multilinear interpolation, or multicubic interpolation. Value of the closest bin inside the histogram range is used if some coordinate is outside of the corresponding axis limits.
Definition at line 156 of file interpolateHistoND.h.
References cms::cuda::assert(), trigObjTnPSource_cfi::bins, timingPdfMaker::histo, mps_fire::i, npstat::Private::iHND_checkArgs(), and mitigatedMETSequence_cff::U.
Referenced by npstat::StorableHistoNDFunctor< Numeric, Axis, Converter >::operator()().
Float npstat::interpolateHistoND | ( | const HistoND< Float, Axis > & | histo, |
double | x0, | ||
double | x1, | ||
double | x2, | ||
double | x3, | ||
double | x4, | ||
double | x5, | ||
double | x6, | ||
double | x7, | ||
double | x8, | ||
double | x9, | ||
unsigned | interpolationDegree | ||
) |
Definition at line 426 of file interpolateHistoND.h.
References trigObjTnPSource_cfi::bins, timingPdfMaker::histo, npstat::Private::iHND_checkArgs(), mitigatedMETSequence_cff::U, testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.
Float npstat::interpolateHistoND | ( | const HistoND< Float, Axis > & | histo, |
double | x0, | ||
double | x1, | ||
double | x2, | ||
double | x3, | ||
double | x4, | ||
double | x5, | ||
double | x6, | ||
double | x7, | ||
double | x8, | ||
unsigned | interpolationDegree | ||
) |
Definition at line 390 of file interpolateHistoND.h.
References trigObjTnPSource_cfi::bins, timingPdfMaker::histo, npstat::Private::iHND_checkArgs(), mitigatedMETSequence_cff::U, testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.
Float npstat::interpolateHistoND | ( | const HistoND< Float, Axis > & | histo, |
double | x0, | ||
double | x1, | ||
double | x2, | ||
double | x3, | ||
double | x4, | ||
double | x5, | ||
double | x6, | ||
double | x7, | ||
unsigned | interpolationDegree | ||
) |
Definition at line 356 of file interpolateHistoND.h.
References trigObjTnPSource_cfi::bins, timingPdfMaker::histo, npstat::Private::iHND_checkArgs(), mitigatedMETSequence_cff::U, testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.
Float npstat::interpolateHistoND | ( | const HistoND< Float, Axis > & | histo, |
double | x0, | ||
double | x1, | ||
double | x2, | ||
double | x3, | ||
double | x4, | ||
double | x5, | ||
double | x6, | ||
unsigned | interpolationDegree | ||
) |
Definition at line 324 of file interpolateHistoND.h.
References trigObjTnPSource_cfi::bins, timingPdfMaker::histo, npstat::Private::iHND_checkArgs(), mitigatedMETSequence_cff::U, testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.
Float npstat::interpolateHistoND | ( | const HistoND< Float, Axis > & | histo, |
double | x0, | ||
double | x1, | ||
double | x2, | ||
double | x3, | ||
double | x4, | ||
double | x5, | ||
unsigned | interpolationDegree | ||
) |
Definition at line 294 of file interpolateHistoND.h.
References trigObjTnPSource_cfi::bins, timingPdfMaker::histo, npstat::Private::iHND_checkArgs(), mitigatedMETSequence_cff::U, testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.
Float npstat::interpolateHistoND | ( | const HistoND< Float, Axis > & | histo, |
double | x0, | ||
double | x1, | ||
double | x2, | ||
double | x3, | ||
double | x4, | ||
unsigned | interpolationDegree | ||
) |
Definition at line 266 of file interpolateHistoND.h.
References trigObjTnPSource_cfi::bins, timingPdfMaker::histo, npstat::Private::iHND_checkArgs(), mitigatedMETSequence_cff::U, testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.
Float npstat::interpolateHistoND | ( | const HistoND< Float, Axis > & | histo, |
double | x0, | ||
double | x1, | ||
double | x2, | ||
double | x3, | ||
unsigned | interpolationDegree | ||
) |
Definition at line 240 of file interpolateHistoND.h.
References trigObjTnPSource_cfi::bins, timingPdfMaker::histo, npstat::Private::iHND_checkArgs(), mitigatedMETSequence_cff::U, testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.
Float npstat::interpolateHistoND | ( | const HistoND< Float, Axis > & | histo, |
double | x0, | ||
double | x1, | ||
double | x2, | ||
unsigned | interpolationDegree | ||
) |
Definition at line 216 of file interpolateHistoND.h.
References trigObjTnPSource_cfi::bins, timingPdfMaker::histo, npstat::Private::iHND_checkArgs(), mitigatedMETSequence_cff::U, testProducerWithPsetDescEmpty_cfi::x1, and testProducerWithPsetDescEmpty_cfi::x2.
Float npstat::interpolateHistoND | ( | const HistoND< Float, Axis > & | histo, |
double | x0, | ||
double | x1, | ||
unsigned | interpolationDegree | ||
) |
Definition at line 194 of file interpolateHistoND.h.
References trigObjTnPSource_cfi::bins, timingPdfMaker::histo, npstat::Private::iHND_checkArgs(), mitigatedMETSequence_cff::U, and testProducerWithPsetDescEmpty_cfi::x1.
Float npstat::interpolateHistoND | ( | const HistoND< Float, Axis > & | histo, |
double | x0, | ||
unsigned | interpolationDegree | ||
) |
Convenience function for interpolating histograms, with an explicit coordinate argument for each histogram dimension
Definition at line 178 of file interpolateHistoND.h.
References trigObjTnPSource_cfi::bins, timingPdfMaker::histo, npstat::Private::iHND_checkArgs(), and mitigatedMETSequence_cff::U.
unsigned npstat::interpolation_coefficients | ( | T * | buffer, |
unsigned | bufLen, | ||
const T & | f0, | ||
const T & | f1 | ||
) |
Get the coefficients of the interpolating polynomial. The interpolated function values are provided at 0, 1, ... The return value of the function is the number of coefficients (i.e., the polynomial degree plus one). On exit, the coefficients are placed into the "buffer" array in the order of increasing monomial degree. The length of the provided buffer must be sufficient to hold all these coefficients.
Definition at line 73 of file interpolate.h.
References edmScanValgrind::buffer, DeadROC_duringRun::f1, and mitigatedMETSequence_cff::U.
unsigned npstat::interpolation_coefficients | ( | T * | buffer, |
unsigned | bufLen, | ||
const T & | f0, | ||
const T & | f1, | ||
const T & | f2 | ||
) |
Definition at line 84 of file interpolate.h.
References edmScanValgrind::buffer, DeadROC_duringRun::f1, DeadROC_duringRun::f2, and mitigatedMETSequence_cff::U.
unsigned npstat::interpolation_coefficients | ( | T * | buffer, |
unsigned | bufLen, | ||
const T & | f0, | ||
const T & | f1, | ||
const T & | f2, | ||
const T & | f3 | ||
) |
Definition at line 96 of file interpolate.h.
References edmScanValgrind::buffer, DeadROC_duringRun::f1, DeadROC_duringRun::f2, and mitigatedMETSequence_cff::U.
|
inline |
Check if the sequence of values is either non-increasing or non-decreasing
Definition at line 79 of file isMonotonous.h.
References begin, end, isNonDecreasing(), and isNonIncreasing().
|
inline |
Check if the sequence of values is not decreasing
Definition at line 50 of file isMonotonous.h.
References begin, end, dqmdumpme::first, and mps_update::status.
Referenced by isMonotonous().
|
inline |
Check if the sequence of values is not increasing
Definition at line 63 of file isMonotonous.h.
References begin, end, dqmdumpme::first, and mps_update::status.
Referenced by isMonotonous().
|
inline |
Check if the sequence of values is strictly decreasing
Definition at line 31 of file isMonotonous.h.
References begin, end, dqmdumpme::first, and mps_update::status.
Referenced by isStrictlyMonotonous().
|
inline |
Check if the sequence of values is strictly increasing
Definition at line 18 of file isMonotonous.h.
References begin, end, dqmdumpme::first, and mps_update::status.
Referenced by isStrictlyMonotonous().
|
inline |
Check if the sequence of values is strictly increasing or decreasing
Definition at line 44 of file isMonotonous.h.
References begin, end, isStrictlyDecreasing(), and isStrictlyIncreasing().
Referenced by npstat::Private::lind_invert1DSlice().
bool npstat::isSubShape | ( | const ArrayShape & | sh1, |
const ArrayShape & | sh2 | ||
) |
This function returns true if the number of elements is the same in both vectors and every element of the first vector does not exceed corresponding element of the second
Definition at line 169 of file ArrayShape.cc.
References mps_fire::i.
|
inline |
Function for allocating memory buffers if their size exceeds the size of the buffer available on the stack
Definition at line 22 of file allocators.h.
Referenced by npstat::ArrayND< Num1, Len1, Dim1 >::addToProjection(), npstat::ArrayND< Num1, Len1, Dim1 >::ArrayND(), npstat::ArrayND< Num1, Len1, Dim1 >::buildFromShapePtr(), npstat::ArrayND< Num1, Len1, Dim1 >::buildStrides(), npstat::ArrayND< Num1, Len1, Dim1 >::contract(), npstat::ArrayND< Num1, Len1, Dim1 >::dot(), npstat::ArrayND< Num1, Len1, Dim1 >::functorFill(), npstat::ArrayND< Num1, Len1, Dim1 >::processSubrange(), npstat::ArrayND< Num1, Len1, Dim1 >::project(), npstat::ArrayND< Num1, Len1, Dim1 >::restore(), npstat::ArrayND< Num1, Len1, Dim1 >::subtractFromProjection(), and npstat::ArrayND< Num1, Len1, Dim1 >::transpose().
ArrayShape npstat::makeShape | ( | ) |
This convenience function will construct an array shape using an explicit list of indices
Definition at line 7 of file ArrayShape.cc.
ArrayShape npstat::makeShape | ( | const unsigned * | indices, |
unsigned | nIndices | ||
) |
Definition at line 137 of file ArrayShape.cc.
References cms::cuda::assert(), mps_fire::i, bTagCombinedSVVariables_cff::indices, and alignCSCRings::s.
ArrayShape npstat::makeShape | ( | unsigned | i0 | ) |
Definition at line 9 of file ArrayShape.cc.
ArrayShape npstat::makeShape | ( | unsigned | i0, |
unsigned | i1 | ||
) |
Definition at line 11 of file ArrayShape.cc.
References testProducerWithPsetDescEmpty_cfi::i1, and alignCSCRings::s.
ArrayShape npstat::makeShape | ( | unsigned | i0, |
unsigned | i1, | ||
unsigned | i2 | ||
) |
Definition at line 19 of file ArrayShape.cc.
References testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, and alignCSCRings::s.
ArrayShape npstat::makeShape | ( | unsigned | i0, |
unsigned | i1, | ||
unsigned | i2, | ||
unsigned | i3 | ||
) |
Definition at line 28 of file ArrayShape.cc.
References testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, testProducerWithPsetDescEmpty_cfi::i3, and alignCSCRings::s.
ArrayShape npstat::makeShape | ( | unsigned | i0, |
unsigned | i1, | ||
unsigned | i2, | ||
unsigned | i3, | ||
unsigned | i4 | ||
) |
Definition at line 38 of file ArrayShape.cc.
References testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, testProducerWithPsetDescEmpty_cfi::i3, and alignCSCRings::s.
ArrayShape npstat::makeShape | ( | unsigned | i0, |
unsigned | i1, | ||
unsigned | i2, | ||
unsigned | i3, | ||
unsigned | i4, | ||
unsigned | i5 | ||
) |
Definition at line 49 of file ArrayShape.cc.
References testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, testProducerWithPsetDescEmpty_cfi::i3, and alignCSCRings::s.
ArrayShape npstat::makeShape | ( | unsigned | i0, |
unsigned | i1, | ||
unsigned | i2, | ||
unsigned | i3, | ||
unsigned | i4, | ||
unsigned | i5, | ||
unsigned | i6 | ||
) |
Definition at line 61 of file ArrayShape.cc.
References testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, testProducerWithPsetDescEmpty_cfi::i3, and alignCSCRings::s.
ArrayShape npstat::makeShape | ( | unsigned | i0, |
unsigned | i1, | ||
unsigned | i2, | ||
unsigned | i3, | ||
unsigned | i4, | ||
unsigned | i5, | ||
unsigned | i6, | ||
unsigned | i7 | ||
) |
Definition at line 74 of file ArrayShape.cc.
References testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, testProducerWithPsetDescEmpty_cfi::i3, and alignCSCRings::s.
ArrayShape npstat::makeShape | ( | unsigned | i0, |
unsigned | i1, | ||
unsigned | i2, | ||
unsigned | i3, | ||
unsigned | i4, | ||
unsigned | i5, | ||
unsigned | i6, | ||
unsigned | i7, | ||
unsigned | i8 | ||
) |
Definition at line 89 of file ArrayShape.cc.
References testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, testProducerWithPsetDescEmpty_cfi::i3, and alignCSCRings::s.
ArrayShape npstat::makeShape | ( | unsigned | i0, |
unsigned | i1, | ||
unsigned | i2, | ||
unsigned | i3, | ||
unsigned | i4, | ||
unsigned | i5, | ||
unsigned | i6, | ||
unsigned | i7, | ||
unsigned | i8, | ||
unsigned | i9 | ||
) |
Definition at line 112 of file ArrayShape.cc.
References testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, testProducerWithPsetDescEmpty_cfi::i3, and alignCSCRings::s.
void npstat::rescanArray | ( | const ArrayND< Num1, Len1, Dim1 > & | from, |
ArrayND< Num2, Len2, Dim2 > * | to, | ||
unsigned | interpolationDegree = 0 |
||
) |
A utility for filling one array using values of another. The array shapes do not have to be the same but the ranks have to be. Roughly, the arrays are treated as values of histogram bins inside the unit box. The array "to" is filled either with the closest bin value of the array "from" or with an interpolated value (if "interpolationDegree" parameter is not 0).
interpolationDegree parameter must be one of 0, 1, or 3.
Definition at line 103 of file rescanArray.h.
References cms::cuda::assert(), npstat::ArrayND< Numeric, StackLen, StackDim >::rank(), and mitigatedMETSequence_cff::U.
|
inline |
Copy a buffer (with possible type conversion on the fly) transposing it in the process (treating as a square matrix)
Definition at line 52 of file allocators.h.
References cms::cuda::assert(), mps_fire::dest, mps_fire::i, dqmiolumiharvest::j, and source.
|
inline |
Copy a buffer (with possible type conversion on the fly) transposing it in the process (treating as an M x N matrix)
Definition at line 69 of file allocators.h.
References cms::cuda::assert(), mps_fire::dest, mps_fire::i, dqmiolumiharvest::j, N, and source.