Flow123d  JS_before_hm-979-g397e552
Functions
math_fce.cc File Reference

Auxiliary math functions. More...

#include <math.h>
#include <stdio.h>
#include <ostream>
#include "system/logger.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)
 

Detailed Description

Auxiliary math functions.

 * Copyright (C) 2015 Technical University of Liberec. All rights reserved.

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. (http://www.gnu.org/licenses/gpl-3.0.en.html)

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.

Definition in file math_fce.cc.

Function Documentation

double Det3 ( SmallMtx3  a)

Definition at line 94 of file math_fce.cc.

double Inverse2 ( SmallMtx2  a,
SmallMtx2  b 
)
static

Definition at line 123 of file math_fce.cc.

Here is the caller graph for this function:

double Inverse3 ( SmallMtx3  a,
SmallMtx3  b 
)
static

Definition at line 140 of file math_fce.cc.

Here is the caller graph for this function:

double Inverse4 ( SmallMtx4  a,
SmallMtx4  b 
)
static

Definition at line 166 of file math_fce.cc.

Here is the caller graph for this function:

void MatInverse ( int  n,
double **  a 
)

Definition at line 227 of file math_fce.cc.

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

Definition at line 104 of file math_fce.cc.

void normalize_vector ( double  u[])

Definition at line 48 of file math_fce.cc.

void PrintSmallMatrix ( double *  mtx,
int  size 
)

Definition at line 214 of file math_fce.cc.

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

Definition at line 41 of file math_fce.cc.

void scale_vector ( double  u[],
double  k 
)

Definition at line 60 of file math_fce.cc.

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

Definition at line 80 of file math_fce.cc.

double vector_length ( double  v[])

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