Functions
Util.cpp File Reference
#include "tensor_field_nav_core/Util.h"
Include dependency graph for Util.cpp:

Go to the source code of this file.

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)
void CalcShortestDistance (const Location &startPos, const Location &endPos, vector< Location > &locationVec)
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)
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])

Function Documentation

void asolve ( Vec_I_DP b,
Vec_O_DP x,
Vec_DP sa_p,
const int  itrnsp 
)

Definition at line 502 of file Util.cpp.

void atimes ( Vec_I_DP x,
Vec_O_DP r,
Vec_INT ija_p,
Vec_DP sa_p,
const int  itrnsp 
)

Definition at line 495 of file Util.cpp.

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.

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

Definition at line 627 of file Util.cpp.

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 
)

Definition at line 404 of file Util.cpp.

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.

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 
)

Definition at line 534 of file Util.cpp.

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 
)

Definition at line 555 of file Util.cpp.

void sprsin ( Mat_I_DP a,
const DP  thresh,
Vec_O_DP sa,
Vec_O_INT ija 
)

Definition at line 513 of file Util.cpp.

void sprstx ( Vec_I_DP sa,
Vec_I_INT ija,
Vec_I_DP x,
Vec_O_DP b 
)

Definition at line 571 of file Util.cpp.

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