TheBoussinesqModel  3.2.1
 All Data Structures Files Functions Variables Typedefs Macros Pages
doublevector_utilities.c File Reference
#include "turtle.h"
#include "t_datamanipulation.h"
#include "t_utilities.h"
#include "linear_span.h"
#include "doublevector_utilities.h"

Go to the source code of this file.

Macros

#define MAX_REITERATON   1
 
#define DELTA_MIN   epsilon
 

Functions

int linear_comb_doublevector (DOUBLEVECTOR *result, DOUBLEVECTOR *a, DOUBLEVECTOR *b, double ca, double cb)
 
double max_doublevector (DOUBLEVECTOR *v)
 
double min_doublevector (DOUBLEVECTOR *v)
 

Detailed Description

MATH2 CONTAINS ALGEBRAIC ROUTINES FOR GEOtop AND OTHER MODELS

MATH2 Version 0.9375 KMackenzie

file doublevector_utilities.c

Copyright, 2009 Stefano Endrizzi, Emanuele Cordano, Matteo Dall'Amico and Riccardo Rigon

This file is part of MATH2. MATH2 is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

MATH2 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, see http://www.gnu.org/licenses/.

Author
Emanuele cordano

Definition in file doublevector_utilities.c.

Macro Definition Documentation

#define DELTA_MIN   epsilon

Definition at line 41 of file doublevector_utilities.c.

#define MAX_REITERATON   1

Definition at line 39 of file doublevector_utilities.c.

Function Documentation

int linear_comb_doublevector ( DOUBLEVECTOR result,
DOUBLEVECTOR a,
DOUBLEVECTOR b,
double  ca,
double  cb 
)
Parameters
result- (DOUBLEVECTOR *) result vector (r=a*ca+b*cb)
a- (DOUBLECTOR *) vector
b- (DOUBLECTOR *) vector
ca- coefficient for "a" vector
cb- coefficient for "b" vector
Author
Emanuele Cordano
Date
November 2008
Returns
if r is solved correctly or -1 otherwise

Definition at line 43 of file doublevector_utilities.c.

References DOUBLEVECTOR::nh, and DOUBLEVECTOR::nl.

double max_doublevector ( DOUBLEVECTOR v)
Date
March 2009
Author
Emanuele Cordano

maximum value in a doublevector

Definition at line 76 of file doublevector_utilities.c.

References DOUBLEVECTOR::nl.

Referenced by jacobi_preconditioned_conjugate_gradient_search(), and Newton_convergence().

double min_doublevector ( DOUBLEVECTOR v)
Date
February 2008
Author
Emanuele Cordano

minimum value in a doublevector

Definition at line 94 of file doublevector_utilities.c.

References DOUBLEVECTOR::nl.