Flow123d  master-e663071
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

◆ Det3()

double Det3 ( SmallMtx3  a)

Definition at line 94 of file math_fce.cc.

◆ Inverse2()

double Inverse2 ( SmallMtx2  a,
SmallMtx2  b 
)
static

Definition at line 123 of file math_fce.cc.

Here is the caller graph for this function:

◆ Inverse3()

double Inverse3 ( SmallMtx3  a,
SmallMtx3  b 
)
static

Definition at line 140 of file math_fce.cc.

Here is the caller graph for this function:

◆ Inverse4()

double Inverse4 ( SmallMtx4  a,
SmallMtx4  b 
)
static

Definition at line 166 of file math_fce.cc.

Here is the caller graph for this function:

◆ MatInverse()

void MatInverse ( int  n,
double **  a 
)

Definition at line 227 of file math_fce.cc.

◆ MatrixInverse()

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

Definition at line 104 of file math_fce.cc.

◆ normalize_vector()

void normalize_vector ( double  u[])

Definition at line 48 of file math_fce.cc.

◆ PrintSmallMatrix()

void PrintSmallMatrix ( double *  mtx,
int  size 
)

Definition at line 214 of file math_fce.cc.

◆ scalar_product()

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

Definition at line 41 of file math_fce.cc.

◆ scale_vector()

void scale_vector ( double  u[],
double  k 
)

Definition at line 60 of file math_fce.cc.

◆ vector_difference()

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

Definition at line 80 of file math_fce.cc.

◆ vector_length()

double vector_length ( double  v[])

Definition at line 34 of file math_fce.cc.

Here is the caller graph for this function:

◆ vector_product()

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

Definition at line 68 of file math_fce.cc.