Flow123d
jenkins-Flow123d-linux-release-multijob-282
|
??? More...
#include <float.h>
Go to the source code of this file.
Macros | |
#define | NUM_ZERO DBL_MIN/DBL_EPSILON |
Numerical helpers. More... | |
#define | EPS(value) (value) |
#define | ZERO EPS(1e-12) |
#define | DBL_EQ(i, j) (fabs((i)-(j))<NUM_ZERO) |
#define | DBL_GE(i, j) ((i)>(j)-NUM_ZERO) |
#define | DBL_LE(i, j) ((i)<(j)+NUM_ZERO) |
#define | DBL_GT(i, j) ((i)>(j)+NUM_ZERO) |
#define | DBL_LT(i, j) ((i)<(j)-NUM_ZERO) |
#define | SQUARE(x) ((x) * (x)) |
Usefull math macros. More... | |
#define | SGN(x) ( ((x)>ZERO)? (1) : ( ((x)<(-ZERO))? (-1) : (0) ) ) |
#define | SUBDET2(i, j, k, l) (a[(i)][(k)]*a[(j)][(l)]-a[(i)][(l)]*a[(j)][(k)]) |
#define | M_PI 3.14159265358979323846264338327950288f |
Typedefs | |
typedef double | SmallVec1_t [1] |
small matrix types More... | |
typedef double | SmallVec2_t [2] |
typedef double | SmallVec3_t [3] |
typedef double | SmallVec4_t [4] |
typedef SmallVec1_t * | SmallMtx1 |
typedef SmallVec2_t * | SmallMtx2 |
typedef SmallVec3_t * | SmallMtx3 |
typedef SmallVec4_t * | SmallMtx4 |
Functions | |
double | vector_length (double[]) |
double | scalar_product (double[], double[]) |
void | normalize_vector (double[]) |
void | scale_vector (double[], double) |
void | vector_product (double[], double[], double[]) |
void | vector_difference (double[], double[], double[]) |
double | Det3 (SmallMtx3 a) |
double | MatrixInverse (double *a, double *b, int size) |
void | PrintSmallMatrix (double *mtx, int size) |
???
Copyright (C) 2007 Technical University of Liberec. All rights reserved.
Please make a following refer to Flow123d on your project site if you use the program for any purpose, especially for academic research: Flow123d, Research Centre: Advanced Remedial Technologies, Technical University of Liberec, Czech Republic
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 021110-1307, USA.
$Id$ $Revision$ $LastChangedBy$ $LastChangedDate$
Definition in file math_fce.h.
#define DBL_EQ | ( | i, | |
j | |||
) | (fabs((i)-(j))<NUM_ZERO) |
Definition at line 62 of file math_fce.h.
#define DBL_GE | ( | i, | |
j | |||
) | ((i)>(j)-NUM_ZERO) |
Definition at line 63 of file math_fce.h.
#define DBL_GT | ( | i, | |
j | |||
) | ((i)>(j)+NUM_ZERO) |
Definition at line 65 of file math_fce.h.
#define DBL_LE | ( | i, | |
j | |||
) | ((i)<(j)+NUM_ZERO) |
Definition at line 64 of file math_fce.h.
#define DBL_LT | ( | i, | |
j | |||
) | ((i)<(j)-NUM_ZERO) |
Definition at line 66 of file math_fce.h.
#define EPS | ( | value | ) | (value) |
Definition at line 57 of file math_fce.h.
#define M_PI 3.14159265358979323846264338327950288f |
Definition at line 73 of file math_fce.h.
#define NUM_ZERO DBL_MIN/DBL_EPSILON |
Numerical helpers.
Definition at line 53 of file math_fce.h.
Definition at line 70 of file math_fce.h.
#define SQUARE | ( | x | ) | ((x) * (x)) |
Usefull math macros.
Definition at line 69 of file math_fce.h.
#define SUBDET2 | ( | i, | |
j, | |||
k, | |||
l | |||
) | (a[(i)][(k)]*a[(j)][(l)]-a[(i)][(l)]*a[(j)][(k)]) |
Definition at line 71 of file math_fce.h.
#define ZERO EPS(1e-12) |
Definition at line 60 of file math_fce.h.
typedef SmallVec1_t* SmallMtx1 |
Definition at line 41 of file math_fce.h.
typedef SmallVec2_t* SmallMtx2 |
Definition at line 42 of file math_fce.h.
typedef SmallVec3_t* SmallMtx3 |
Definition at line 43 of file math_fce.h.
typedef SmallVec4_t* SmallMtx4 |
Definition at line 44 of file math_fce.h.
typedef double SmallVec1_t[1] |
small matrix types
Definition at line 36 of file math_fce.h.
typedef double SmallVec2_t[2] |
Definition at line 37 of file math_fce.h.
typedef double SmallVec3_t[3] |
Definition at line 38 of file math_fce.h.
typedef double SmallVec4_t[4] |
Definition at line 39 of file math_fce.h.
double Det3 | ( | SmallMtx3 | a | ) |
Definition at line 106 of file math_fce.cc.
double MatrixInverse | ( | double * | a, |
double * | b, | ||
int | size | ||
) |
void normalize_vector | ( | double | [] | ) |
void PrintSmallMatrix | ( | double * | mtx, |
int | size | ||
) |
double scalar_product | ( | double | [], |
double | [] | ||
) |
void scale_vector | ( | double | [], |
double | |||
) |
Definition at line 72 of file math_fce.cc.
void vector_difference | ( | double | [], |
double | [], | ||
double | [] | ||
) |
Definition at line 92 of file math_fce.cc.
double vector_length | ( | double | [] | ) |
void vector_product | ( | double | [], |
double | [], | ||
double | [] | ||
) |