00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef _BASIC_ALGOS_H_
00010 #define _BASIC_ALGOS_H_
00011
00012 #include "machine.h"
00013 #include <string.h>
00014
00020 double sciFindStPosMin( double x[], int n ) ;
00021
00022 void MaxiInd( double vect[], integer n, integer * ind, double maxi ) ;
00023
00030 int C2F(entier2d)( integer * n, double * dx,integer * s ) ;
00031
00039 int checkMonotony( double vector[], int nbElement ) ;
00040
00044 void doubleArrayCopy( double dest[], const double src[], int nbElement ) ;
00045
00049 void intArrayCopy( int dest[], const int src[], int nbElement ) ;
00050
00054 void stringArrayCopy( char * dest[], char * src[], int nbElement ) ;
00055
00059 void setDoubleArraySingleValue( double dest[], double value, int nbElement ) ;
00060
00068 double * createNewArrayFromSource( int destSize, const double src[], int srcSize ) ;
00069
00073 void destroyStringArray( char * src[], int nbStrings ) ;
00074
00078 double * createDoubleArrayCopy( const double src[], int nbElement ) ;
00079
00083 int * createIntArrayCopy( const int src[], int nbElement ) ;
00084
00088 char ** createStringArrayCopy( char * src[], int nbElement ) ;
00089
00090
00091 #endif