utility.h

Go to the documentation of this file.
00001 /*
00002  * File:  utility.h
00003  * ================
00004  * This file contains the interface to the utility routines implemented in
00005  * utility.c.
00006  *
00007  * Originally written by:  David R. Mackay
00008  *
00009  * Modified by:
00010  *  Jun Peng (junpeng@stanford.edu)
00011  *  Prof. Kincho H. Law
00012  *  Stanford University
00013  * --------------------
00014  */
00015 
00016 #ifndef UTILITY_H
00017 #define UTILITY_H
00018 
00019 
00020 /*
00021  * Function:  clear_real
00022  * =====================
00023  * Arguments:  array => array of real's to be cleared to 0's
00024  *             n => length of "array"
00025  * Return Values:  none
00026  * Notes:
00027  * Used in ... main.c
00028  */
00029 void  clear_real(double *array, int n);
00030 
00031 
00032 /*
00033  * Function:  dot_real
00034  * ===================
00035  *
00036  * Notes:  Program to dot a vector with a vector.
00037  * Used in ... newsub.c, nmat.c
00038  */
00039 double  dot_real( double *vect_1, double *vect_2, int n );
00040 
00041 
00042 /*
00043  * Function:  i_greater
00044  * ====================
00045  *
00046  * Used in ... nest.c
00047  */
00048 int  i_greater( int *p1, int *p2 );
00049 
00050 
00051 /*
00052  * Function:  zeroi
00053  * ================
00054  *
00055  * Used in ... grcm.c, nest.c, newadj.c, newordr.c, nnsim.c
00056  */
00057 void  zeroi( int n, int *v );
00058 
00059 
00060 /*
00061  * Function:  minoni
00062  * =================
00063  *
00064  * Used in ... newordr.c
00065  */
00066 void  minoni( int n, int *v );
00067 
00068 
00069 /*
00070  * Function:  saxpy
00071  * ================
00072  *
00073  * Notes:  v1 = v1 + alpha*v2
00074  * Used in ... nmat.c
00075  */
00076 void  saxpy( double *v1, double *v2, double alpha, int n );
00077 
00078 
00079 /*
00080  * Function:  copyi
00081  * ================
00082  *
00083  * Used in ... newadj.c
00084  */
00085 void  copyi( int n, int *from, int *to );
00086 
00087 
00088 /*
00089  * Function:  rcomp
00090  * ================
00091  *
00092  * Used in ... main.c
00093  */
00094 int  rcomp( double *p1, double *p2 );
00095 
00096 
00097 
00098 /* UNUSED FUNCTIONS */
00099 /*
00100  * Function:  move_real
00101  * ====================
00102  * Arguments:  from => source array of real's
00103  *             to => destination array of real's
00104  *             n => length of array "to"
00105  * Return Values:  none
00106  * Notes:
00107  */
00108 void  move_real(double *from, double *to, int n);
00109 
00110 int  icomp( int *p1, int *p2 );
00111 int  fcomp( float *p1, float *p2 );
00112 
00113 
00114 #endif

Generated on Mon Oct 23 15:05:29 2006 for OpenSees by doxygen 1.5.0