UQTk: Uncertainty Quantification Toolkit  3.1.1
Macros | Functions
minmax.h File Reference

Header for min/max tools. More...

Go to the source code of this file.

Macros

#define M_PI   atan(1.0) * 4.0
 Define M_PI for compatibility with cygwin on Windows. More...
 

Functions

void getDomain (Array2D< double > &data_in, Array1D< double > &a, Array1D< double > &b)
 Get domain of the data. More...
 
double maxVal (Array1D< double > &vector)
 Returns the maximum value of a 1d double array. More...
 
int maxVal (const Array1D< int > &vector)
 Returns the maximum value of a 1d int array. More...
 
double maxVal (const Array2D< double > &vector)
 Returns the maximum value of a 2d double array. More...
 
int maxVal (const Array2D< int > &vector)
 Returns the maximum value of a 2d int array. More...
 
double minVal (const Array1D< double > &vector)
 Returns the minimum value of a 1d double array. More...
 
int minVal (const Array1D< int > &vector)
 Returns the minimum value of a 1d int array. More...
 
double minVal (const Array2D< double > &vector)
 Returns the minimum value of a 2d double array. More...
 
int minVal (const Array2D< int > &vector)
 Returns the minimum value of a 2d int array. More...
 
int maxIndex (Array1D< double > &vector)
 Returns the index of the maximal value of a 1d double array. More...
 
int maxIndex (Array1D< int > &vector)
 Returns the index of the maximal value of a 1d int array. More...
 
int minIndex (Array1D< double > &vector)
 Returns the index of the minimal value of a 1d double array. More...
 
int minIndex (Array1D< int > &vector)
 Returns the index of the minimal value of a 1d int array. More...
 
int maxIndexC_2D (const Array2D< double > &vector, const int icol)
 Returns the column number of the maximal element in the irow-th row of a 2d double array. More...
 
int minIndexC_2D (const Array2D< double > &vector, const int icol)
 Returns the row number of the minimal element in the icol-th column of a 2d double array. More...
 

Detailed Description

Header for min/max tools.

Macro Definition Documentation

◆ M_PI

#define M_PI   atan(1.0) * 4.0

Define M_PI for compatibility with cygwin on Windows.

Todo:
See if we could move this to the CMake installation scripts instead

Function Documentation

◆ getDomain()

void getDomain ( Array2D< double > &  data_in,
Array1D< double > &  a,
Array1D< double > &  b 
)

Get domain of the data.

◆ maxIndex() [1/2]

int maxIndex ( Array1D< double > &  vector)

Returns the index of the maximal value of a 1d double array.

◆ maxIndex() [2/2]

int maxIndex ( Array1D< int > &  vector)

Returns the index of the maximal value of a 1d int array.

◆ maxIndexC_2D()

int maxIndexC_2D ( const Array2D< double > &  vector,
const int  icol 
)

Returns the column number of the maximal element in the irow-th row of a 2d double array.

Returns the column number of the minimal element in the irow-th row of a 2d double array

Returns the row number of the maximal element in the icol-th column of a 2d double array

◆ maxVal() [1/4]

double maxVal ( Array1D< double > &  vector)

Returns the maximum value of a 1d double array.

◆ maxVal() [2/4]

int maxVal ( const Array1D< int > &  vector)

Returns the maximum value of a 1d int array.

◆ maxVal() [3/4]

double maxVal ( const Array2D< double > &  vector)

Returns the maximum value of a 2d double array.

◆ maxVal() [4/4]

int maxVal ( const Array2D< int > &  vector)

Returns the maximum value of a 2d int array.

◆ minIndex() [1/2]

int minIndex ( Array1D< double > &  vector)

Returns the index of the minimal value of a 1d double array.

◆ minIndex() [2/2]

int minIndex ( Array1D< int > &  vector)

Returns the index of the minimal value of a 1d int array.

◆ minIndexC_2D()

int minIndexC_2D ( const Array2D< double > &  vector,
const int  icol 
)

Returns the row number of the minimal element in the icol-th column of a 2d double array.

◆ minVal() [1/4]

double minVal ( const Array1D< double > &  vector)

Returns the minimum value of a 1d double array.

◆ minVal() [2/4]

int minVal ( const Array1D< int > &  vector)

Returns the minimum value of a 1d int array.

◆ minVal() [3/4]

double minVal ( const Array2D< double > &  vector)

Returns the minimum value of a 2d double array.

◆ minVal() [4/4]

int minVal ( const Array2D< int > &  vector)

Returns the minimum value of a 2d int array.