Flow123d
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 Det2 (SmallMtx2 a)
 
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 Det2 ( SmallMtx2  a)
static

Definition at line 107 of file math_fce.cc.

double Det3 ( SmallMtx3  a)

Definition at line 114 of file math_fce.cc.

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

Definition at line 280 of file math_fce.cc.

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

Definition at line 357 of file math_fce.cc.

double Inverse2 ( SmallMtx2  a,
SmallMtx2  b 
)
static

Definition at line 143 of file math_fce.cc.

Here is the caller graph for this function:

double Inverse3 ( SmallMtx3  a,
SmallMtx3  b 
)
static

Definition at line 160 of file math_fce.cc.

Here is the caller graph for this function:

double Inverse4 ( SmallMtx4  a,
SmallMtx4  b 
)
static

Definition at line 186 of file math_fce.cc.

Here is the caller graph for this function:

void MatInverse ( int  n,
double **  a 
)

Definition at line 247 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 373 of file math_fce.cc.

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

Definition at line 124 of file math_fce.cc.

Here is the caller graph for this function:

void normalize_vector ( double  u[])

Definition at line 61 of file math_fce.cc.

Here is the caller graph for this function:

void PrintSmallMatrix ( double *  mtx,
int  size 
)

Definition at line 234 of file math_fce.cc.

Here is the caller graph for this function:

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

Definition at line 54 of file math_fce.cc.

Here is the caller graph for this function:

void scale_vector ( double  u[],
double  k 
)

Definition at line 73 of file math_fce.cc.

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

Definition at line 93 of file math_fce.cc.

Here is the caller graph for this function:

double vector_length ( double  v[])

Definition at line 47 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 81 of file math_fce.cc.

Here is the caller graph for this function: