SAGA API  v9.5
mat_tools.cpp File Reference
#include <time.h>
#include <cfloat>
#include "mat_tools.h"
#include "table.h"
#include "grid.h"
#include "grids.h"
#include "saga_api.h"

Go to the source code of this file.

Functions

double SG_Get_Square (double Value)
 
double SG_Get_Rounded (double Value, int Decimals)
 
double SG_Get_Rounded_To_SignificantFigures (double Value, int Decimals)
 
int SG_Get_Digit_Count (int Number)
 
CSG_String SG_Get_Double_asString (double Number, int Width, int Precision, bool bScientific)
 
int SG_Compare_Int (const void *a, const void *b)
 
int SG_Compare_Double (const void *a, const void *b)
 
int SG_Compare_Char_Ptr (const void *a, const void *b)
 
double SG_Degree_To_Decimal (double Deg, double Min, double Sec)
 
void SG_Decimal_To_Degree (double Value, double &Deg, double &Min, double &Sec)
 
CSG_Matrix SG_Get_Correlation_Matrix (const CSG_Matrix &Values, bool bCovariances)
 

Function Documentation

◆ SG_Compare_Char_Ptr()

int SG_Compare_Char_Ptr ( const void *  a,
const void *  b 
)

Definition at line 211 of file mat_tools.cpp.

◆ SG_Compare_Double()

int SG_Compare_Double ( const void *  a,
const void *  b 
)

◆ SG_Compare_Int()

int SG_Compare_Int ( const void *  a,
const void *  b 
)

Definition at line 187 of file mat_tools.cpp.

◆ SG_Decimal_To_Degree()

void SG_Decimal_To_Degree ( double  Value,
double &  Deg,
double &  Min,
double &  Sec 
)

Definition at line 233 of file mat_tools.cpp.

◆ SG_Degree_To_Decimal()

double SG_Degree_To_Decimal ( double  Deg,
double  Min,
double  Sec 
)

Definition at line 224 of file mat_tools.cpp.

◆ SG_Get_Correlation_Matrix()

CSG_Matrix SG_Get_Correlation_Matrix ( const CSG_Matrix Values,
bool  bCovariances 
)

◆ SG_Get_Digit_Count()

int SG_Get_Digit_Count ( int  Number)

Definition at line 144 of file mat_tools.cpp.

Referenced by CSG_Matrix::to_String().

◆ SG_Get_Double_asString()

CSG_String SG_Get_Double_asString ( double  Number,
int  Width,
int  Precision,
bool  bScientific 
)

Definition at line 159 of file mat_tools.cpp.

References CSG_String::Format().

Referenced by CSG_Vector::to_String(), and CSG_Matrix::to_String().

◆ SG_Get_Rounded()

double SG_Get_Rounded ( double  Value,
int  Decimals 
)

Definition at line 83 of file mat_tools.cpp.

Referenced by CSG_Grid_System::Create().

◆ SG_Get_Rounded_To_SignificantFigures()

double SG_Get_Rounded_To_SignificantFigures ( double  Value,
int  Decimals 
)

◆ SG_Get_Square()