BasicAlgos.h

Go to the documentation of this file.
00001 /*------------------------------------------------------------------------*/
00002 /* file: BasicAlgos.h                                                     */
00003 /* Copyright INRIA 2006                                                   */
00004 /* Authors : Fabrice Leray, Jean-Baptiste Silvy                           */
00005 /* desc : Several basic algorithms which can be used in several places in */
00006 /*        the code.                                                       */
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 /* _BASIC_ALGOS_H_ */

Generated on Sun Mar 4 15:03:49 2007 for Scilab [trunk] by  doxygen 1.5.1