Flow123d  jenkins-Flow123d-linux-release-multijob-282
Functions
math_fce.cc File Reference

Auxiliary math functions. More...

#include <math.h>
#include "global_defs.h"
#include "system/system.hh"
#include "system/math_fce.h"

Go to the source code of this file.

Functions

static double Inverse2 (SmallMtx2 a, SmallMtx2 b)
 
static double Inverse3 (SmallMtx3 a, SmallMtx3 b)
 
static double Inverse4 (SmallMtx4 a, SmallMtx4 b)
 
double vector_length (double v[])
 
double scalar_product (double u[], double v[])
 
void normalize_vector (double u[])
 
void scale_vector (double u[], double k)
 
void vector_product (double u[], double v[], double x[])
 
void vector_difference (double u[], double v[], double x[])
 
double Det3 (SmallMtx3 a)
 
double MatrixInverse (double *a, double *b, int size)
 
void PrintSmallMatrix (double *mtx, int size)
 
void MatInverse (int n, double **a)
 
int gauss (double *A, double *B, int s, double *R)
 
double get_vectors_angle (double u[3], double v[3])
 
void matrix_x_matrix (double *A, int ra, int ca, double *B, int rb, int cb, double *X)
 

Detailed Description

Auxiliary math functions.

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$

Small matrix and vectors should be implemented by armadillo library.

Definition in file math_fce.cc.

Function Documentation

double Det3 ( SmallMtx3  a)

Definition at line 106 of file math_fce.cc.

int gauss ( double *  A,
double *  B,
int  s,
double *  R 
)

Definition at line 272 of file math_fce.cc.

double get_vectors_angle ( double  u[3],
double  v[3] 
)

Definition at line 348 of file math_fce.cc.

double Inverse2 ( SmallMtx2  a,
SmallMtx2  b 
)
static

Definition at line 135 of file math_fce.cc.

Here is the caller graph for this function:

double Inverse3 ( SmallMtx3  a,
SmallMtx3  b 
)
static

Definition at line 152 of file math_fce.cc.

Here is the caller graph for this function:

double Inverse4 ( SmallMtx4  a,
SmallMtx4  b 
)
static

Definition at line 178 of file math_fce.cc.

Here is the caller graph for this function:

void MatInverse ( int  n,
double **  a 
)

Definition at line 239 of file math_fce.cc.

void matrix_x_matrix ( double *  A,
int  ra,
int  ca,
double *  B,
int  rb,
int  cb,
double *  X 
)

Definition at line 364 of file math_fce.cc.

double MatrixInverse ( double *  a,
double *  b,
int  size 
)

Definition at line 116 of file math_fce.cc.

Here is the caller graph for this function:

void normalize_vector ( double  u[])

Definition at line 60 of file math_fce.cc.

Here is the caller graph for this function:

void PrintSmallMatrix ( double *  mtx,
int  size 
)

Definition at line 226 of file math_fce.cc.

Here is the caller graph for this function:

double scalar_product ( double  u[],
double  v[] 
)

Definition at line 53 of file math_fce.cc.

Here is the caller graph for this function:

void scale_vector ( double  u[],
double  k 
)

Definition at line 72 of file math_fce.cc.

void vector_difference ( double  u[],
double  v[],
double  x[] 
)

Definition at line 92 of file math_fce.cc.

double vector_length ( double  v[])

Definition at line 46 of file math_fce.cc.

Here is the caller graph for this function:

void vector_product ( double  u[],
double  v[],
double  x[] 
)

Definition at line 80 of file math_fce.cc.

Here is the caller graph for this function: