Classes | Typedefs | Functions
Util.h File Reference
#include <stdlib.h>
#include <math.h>
#include <vector>
#include "icVector.h"
#include "nrtypes_nr.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.

Classes

struct  Location

Typedefs

typedef int32_t int32
typedef uint32_t uint32

Functions

void asolve (Vec_I_DP &b, Vec_O_DP &x, Vec_DP *sa_p, const int itrnsp)
void atimes (Vec_I_DP &x, Vec_O_DP &r, Vec_INT *ija_p, Vec_DP *sa_p, const int itrnsp)
double bilinear_interpolate (double a, double b, double f00, double f01, double f10, double f11)
void Bresenham (int32 x1, int32 y1, int32 x2, int32 y2, vector< Location > &locationVec)
void BubbleSorting (int *a, int size)
void CalcBresenhamLocs (const Location &startPos, const Location &endPos, vector< Location > &locationVec)
double fabs (double x)
int get_sign (double x)
int GetIntersection2 (double PointA[2], double PointB[2], double PointC[2], double PointD[2], double t[2])
bool is_repeated_elem (int *a, int b, int num)
void linbcg (Vec_I_DP &b, Vec_IO_DP &x, Vec_INT *ija_p, Vec_DP *sa_p, const int itol, const DP tol, const int itmax, int &iter, DP &err)
double * MatrixInver (double A[], int m, int n)
double * MatrixOpp (double A[], int m, int n)
double max (double x, double y)
double min (double x, double y)
bool PointInTriangle (icVector3 A, icVector3 B, icVector3 C, icVector3 P)
bool SameSide (icVector3 A, icVector3 B, icVector3 C, icVector3 P)
DP snrm (Vec_I_DP &sx, const int itol)
int solve_ten_cubic (double a, double b, double c, double d, double solutions[4])
int solve_ten_cubic_2 (double a, double b, double c, double d, double solutions[4])
int solve_ten_cubic_3 (double a, double b, double c, double d, double solutions[4])
int solve_ten_quadratic (double a, double b, double c, double solutions[2])
void sprsax (Vec_I_DP &sa, Vec_I_INT &ija, Vec_I_DP &x, Vec_O_DP &b)
void sprsin (Mat_I_DP &a, const DP thresh, Vec_O_DP &sa, Vec_O_INT &ija)
void sprstx (Vec_I_DP &sa, Vec_I_INT &ija, Vec_I_DP &x, Vec_O_DP &b)
double Surplus (double A[], int m, int n)
void transform_point3D (float p[3], float rot_mat[16])

Typedef Documentation

typedef int32_t int32

Definition at line 11 of file Util.h.

typedef uint32_t uint32

Definition at line 12 of file Util.h.


Function Documentation

void asolve ( Vec_I_DP b,
Vec_O_DP x,
Vec_DP sa_p,
const int  itrnsp 
)
void atimes ( Vec_I_DP x,
Vec_O_DP r,
Vec_INT ija_p,
Vec_DP sa_p,
const int  itrnsp 
)
double bilinear_interpolate ( double  a,
double  b,
double  f00,
double  f01,
double  f10,
double  f11 
)

Definition at line 19 of file Util.cpp.

void Bresenham ( int32  x1,
int32  y1,
int32  x2,
int32  y2,
vector< Location > &  locationVec 
)

Definition at line 587 of file Util.cpp.

void BubbleSorting ( int *  a,
int  size 
)

Definition at line 389 of file Util.cpp.

void CalcBresenhamLocs ( const Location startPos,
const Location endPos,
vector< Location > &  locationVec 
)

Definition at line 681 of file Util.cpp.

double fabs ( double  x) [inline]

Definition at line 24 of file Util.h.

int get_sign ( double  x)

Definition at line 361 of file Util.cpp.

int GetIntersection2 ( double  PointA[2],
double  PointB[2],
double  PointC[2],
double  PointD[2],
double  t[2] 
)

Definition at line 43 of file Util.cpp.

bool is_repeated_elem ( int *  a,
int  b,
int  num 
)

Definition at line 24 of file Util.cpp.

void linbcg ( Vec_I_DP b,
Vec_IO_DP x,
Vec_INT ija_p,
Vec_DP sa_p,
const int  itol,
const DP  tol,
const int  itmax,
int &  iter,
DP err 
)
double* MatrixInver ( double  A[],
int  m,
int  n 
)

Definition at line 100 of file Util.cpp.

double* MatrixOpp ( double  A[],
int  m,
int  n 
)

Definition at line 113 of file Util.cpp.

double max ( double  x,
double  y 
) [inline]

Definition at line 25 of file Util.h.

double min ( double  x,
double  y 
) [inline]

Definition at line 26 of file Util.h.

bool PointInTriangle ( icVector3  A,
icVector3  B,
icVector3  C,
icVector3  P 
)

Definition at line 382 of file Util.cpp.

bool SameSide ( icVector3  A,
icVector3  B,
icVector3  C,
icVector3  P 
)

Definition at line 367 of file Util.cpp.

DP snrm ( Vec_I_DP sx,
const int  itol 
)
int solve_ten_cubic ( double  a,
double  b,
double  c,
double  d,
double  solutions[4] 
)

Definition at line 186 of file Util.cpp.

int solve_ten_cubic_2 ( double  a,
double  b,
double  c,
double  d,
double  solutions[4] 
)

Definition at line 306 of file Util.cpp.

int solve_ten_cubic_3 ( double  a,
double  b,
double  c,
double  d,
double  solutions[4] 
)

Definition at line 233 of file Util.cpp.

int solve_ten_quadratic ( double  a,
double  b,
double  c,
double  solutions[2] 
)

Definition at line 339 of file Util.cpp.

void sprsax ( Vec_I_DP sa,
Vec_I_INT ija,
Vec_I_DP x,
Vec_O_DP b 
)
void sprsin ( Mat_I_DP a,
const DP  thresh,
Vec_O_DP sa,
Vec_O_INT ija 
)
void sprstx ( Vec_I_DP sa,
Vec_I_INT ija,
Vec_I_DP x,
Vec_O_DP b 
)
double Surplus ( double  A[],
int  m,
int  n 
)

Definition at line 149 of file Util.cpp.

void transform_point3D ( float  p[3],
float  rot_mat[16] 
)

Definition at line 6 of file Util.cpp.



tensor_field_nav_core
Author(s): Lintao Zheng, Kai Xu
autogenerated on Thu Jun 6 2019 19:50:56