| fermisurfer
    2.0.0
    fermisurfer | 
Mathematical operations used in various step. More...
#include <cmath>#include <omp.h>
Go to the source code of this file.
| Functions | |
| int | modulo (int i, int n) | 
| Work as Modulo function of fortran.  More... | |
| GLfloat | solve3 (GLfloat a[3][3], GLfloat b[3]) | 
| Solve linear system.  More... | |
| void | eigsort (int n, GLfloat *key, int *swap) | 
| Simple sort.  More... | |
| void | normal_vec (GLfloat in1[3], GLfloat in2[3], GLfloat in3[3], GLfloat out[3]) | 
| Calculate normal vector from corners of triangle.  More... | |
| int | get_thread () | 
| OpenMP wrapper, get the number of threads.  More... | |
Mathematical operations used in various step.
Definition in file basic_math.cpp.
| void eigsort | ( | int | n, | 
| GLfloat * | key, | ||
| int * | swap | ||
| ) | 
Simple sort.
| [in] | n | [in] the number of components | 
| [in] | key | [in] Variables to be sorted [n]. | 
| [out] | swap | [out] Order of index (sorted) | 
Definition at line 88 of file basic_math.cpp.
Referenced by bragg_vector(), calc_nodeline(), calc_section(), and equator().

| int get_thread | ( | ) | 
OpenMP wrapper, get the number of threads.
Definition at line 139 of file basic_math.cpp.
Referenced by calc_nodeline(), calc_section(), equator(), and max_and_min().

| int modulo | ( | int | i, | 
| int | n | ||
| ) | 
Work as Modulo function of fortran.
| [in] | i | [in] | 
| [in] | n | [in] | 
Definition at line 46 of file basic_math.cpp.
Referenced by interpol_energy(), and read_file().

| void normal_vec | ( | GLfloat | in1[3], | 
| GLfloat | in2[3], | ||
| GLfloat | in3[3], | ||
| GLfloat | out[3] | ||
| ) | 
Calculate normal vector from corners of triangle.
| [in] | in1 | [in] Corner 1 | 
| [in] | in2 | [in] Corner 2 | 
| [in] | in3 | [in] Corner 3 | 
| [out] | out | [out] The normal vector | 
Definition at line 114 of file basic_math.cpp.
| GLfloat solve3 | ( | GLfloat | a[3][3], | 
| GLfloat | b[3] | ||
| ) | 
Solve linear system.
| [in] | a | [in] Matix | 
| [in,out] | b | [in,out] Right hand side vector | 
Definition at line 58 of file basic_math.cpp.
Referenced by allocate_griddata(), bragg_vert(), and bragg_vert2d().

 1.8.17
 1.8.17