FEMTIC
Enumerations | Functions
Util.h File Reference
#include <iostream>
#include <string>
#include <algorithm>
#include <complex>
#include "CommonParameters.h"
Include dependency graph for Util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  comparativeOperators { EQUAL =0 , LARGE_LEFT_HAND_SIDE , SMALL_LEFT_HAND_SIDE }
 

Functions

void quickSort (const int numOfIDs, int *ids, const double *values)
 
void quickSortThreeKeys (const int numOfIDs, int *ids, const double *firstKeyValues, const double *secondKeyValues, const double *thirdKeyValues)
 
int compareValueByThreeKeys (const int lhsID, const int rhsID, const double *firstKeyValues, const double *secondKeyValues, const double *thirdKeyValues)
 
void calcProductFor2x2DoubleMatrix (const CommonParameters::DoubleMatrix2x2 &matInA, const CommonParameters::DoubleMatrix2x2 &matInB, CommonParameters::DoubleMatrix2x2 &matOut)
 
CommonParameters::Vector3D calcVector3D (const CommonParameters::locationXYZ &startCoords, const CommonParameters::locationXYZ &endCoords)
 
CommonParameters::Vector3D calcOuterProduct (const CommonParameters::Vector3D &vec1, const CommonParameters::Vector3D &vec2)
 
double calcInnerProduct (const CommonParameters::Vector3D &vec1, const CommonParameters::Vector3D &vec2)
 
void calcImpedanceTensorComponentFromApparentResistivityAndPhase (const double freq, const double appRes, const double appResError, const double phase, const double phaseError, std::complex< double > &Z, CommonParameters::DoubleComplexValues &ZError)
 

Enumeration Type Documentation

◆ comparativeOperators

Enumerator
EQUAL 
LARGE_LEFT_HAND_SIDE 
SMALL_LEFT_HAND_SIDE 

Function Documentation

◆ calcImpedanceTensorComponentFromApparentResistivityAndPhase()

void calcImpedanceTensorComponentFromApparentResistivityAndPhase ( const double  freq,
const double  appRes,
const double  appResError,
const double  phase,
const double  phaseError,
std::complex< double > &  Z,
CommonParameters::DoubleComplexValues ZError 
)

◆ calcInnerProduct()

double calcInnerProduct ( const CommonParameters::Vector3D vec1,
const CommonParameters::Vector3D vec2 
)

◆ calcOuterProduct()

CommonParameters::Vector3D calcOuterProduct ( const CommonParameters::Vector3D vec1,
const CommonParameters::Vector3D vec2 
)

◆ calcProductFor2x2DoubleMatrix()

void calcProductFor2x2DoubleMatrix ( const CommonParameters::DoubleMatrix2x2 matInA,
const CommonParameters::DoubleMatrix2x2 matInB,
CommonParameters::DoubleMatrix2x2 matOut 
)

◆ calcVector3D()

CommonParameters::Vector3D calcVector3D ( const CommonParameters::locationXYZ startCoords,
const CommonParameters::locationXYZ endCoords 
)

◆ compareValueByThreeKeys()

int compareValueByThreeKeys ( const int  lhsID,
const int  rhsID,
const double *  firstKeyValues,
const double *  secondKeyValues,
const double *  thirdKeyValues 
)

◆ quickSort()

void quickSort ( const int  numOfIDs,
int *  ids,
const double *  values 
)

◆ quickSortThreeKeys()

void quickSortThreeKeys ( const int  numOfIDs,
int *  ids,
const double *  firstKeyValues,
const double *  secondKeyValues,
const double *  thirdKeyValues 
)