OscProb
OscProb::IdxCompare Struct Reference

An index sorting comparator. More...

#include <PMNS_Base.h>

Public Member Functions

 IdxCompare (const vectorD &target)
 Take in a target vector. More...
 
bool operator() (int a, int b) const
 Compare elements a and b of target vector. More...
 

Private Attributes

const vectorD target
 Attribute to store the target vector. More...
 

Detailed Description

Definition at line 312 of file PMNS_Base.h.

Constructor & Destructor Documentation

◆ IdxCompare()

OscProb::IdxCompare::IdxCompare ( const vectorD target)
inline

Definition at line 314 of file PMNS_Base.h.

314: target(target) {}
const vectorD target
Attribute to store the target vector.
Definition: PMNS_Base.h:321

Member Function Documentation

◆ operator()()

bool OscProb::IdxCompare::operator() ( int  a,
int  b 
) const
inline

Definition at line 317 of file PMNS_Base.h.

317{ return target[a] < target[b]; }

References target.

Member Data Documentation

◆ target

const vectorD OscProb::IdxCompare::target
private

Definition at line 321 of file PMNS_Base.h.

Referenced by operator()().


The documentation for this struct was generated from the following file: