Xmipp  v3.23.11-Nereus
Public Member Functions | Public Attributes | List of all members
MeritSettings Class Reference

#include <amerit_computer.h>

Collaboration diagram for MeritSettings:
Collaboration graph
[legend]

Public Member Functions

void check () const
 

Public Attributes

std::vector< HW * > hw
 
Dimensions refDims = Dimensions(0)
 
Dimensions otherDims = Dimensions(0)
 
MeritType type
 
bool normalizeResult
 

Detailed Description

Definition at line 41 of file amerit_computer.h.

Member Function Documentation

◆ check()

void MeritSettings::check ( ) const
inline

Definition at line 49 of file amerit_computer.h.

49  {
50  if (0 == hw.size()) {
51  REPORT_ERROR(ERR_VALUE_INCORRECT, "HW contains zero (0) devices");
52  }
53  if ( ! refDims.isValid()) {
54  REPORT_ERROR(ERR_LOGIC_ERROR, "'Ref' dimensions are invalid (contain 0)");
55  }
56  if ( ! otherDims.isValid()) {
57  REPORT_ERROR(ERR_LOGIC_ERROR, "'Other' dimensions are invalid (contain 0)");
58  }
60  REPORT_ERROR(ERR_LOGIC_ERROR, "Dimensions of the reference and other signals differ");
61  }
62  if ((MeritType::OneToN == type)
63  && (1 != refDims.n())) {
64  REPORT_ERROR(ERR_LOGIC_ERROR, "More than one reference specified for type 1:N");
65  }
66  }
#define REPORT_ERROR(nerr, ErrormMsg)
Definition: xmipp_error.h:211
MeritType type
std::vector< HW * > hw
constexpr bool equalExceptNPadded(const Dimensions &b) const
Definition: dimensions.h:124
Dimensions refDims
CUDA_HD constexpr size_t n() const
Definition: dimensions.h:78
Dimensions otherDims
constexpr bool isValid() const
Definition: dimensions.h:138
Incorrect value received.
Definition: xmipp_error.h:195
Some logical error in the pipeline.
Definition: xmipp_error.h:147

Member Data Documentation

◆ hw

std::vector<HW*> MeritSettings::hw

Definition at line 43 of file amerit_computer.h.

◆ normalizeResult

bool MeritSettings::normalizeResult

Definition at line 47 of file amerit_computer.h.

◆ otherDims

Dimensions MeritSettings::otherDims = Dimensions(0)

Definition at line 45 of file amerit_computer.h.

◆ refDims

Dimensions MeritSettings::refDims = Dimensions(0)

Definition at line 44 of file amerit_computer.h.

◆ type

MeritType MeritSettings::type

Definition at line 46 of file amerit_computer.h.


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