Main Page | Class List | File List | Class Members | File Members

vector.h

Go to the documentation of this file.
00001 /*
00002  *   This file was automatically generated by version 1.7 of cextract.
00003  *   Manual editing not recommended.
00004  *
00005  *   Created: Mon Mar 30 11:33:18 1998
00006  */
00007 #ifndef _vector_H_ 
00008 #define _vector_H_
00009 #if (defined(__STDC__) || defined(__cplusplus))
00010 
00011 #if defined(__cplusplus)
00012 extern "C" {
00013 #endif
00014 
00015 int ConstraintSimplify(Value *old, Value *n, int len, Value* v);
00016 Value* value_alloc(int want, int *got);
00017 void value_free(Value *p, int size);
00018 
00019 extern void Factorial(int n,Value *result);
00020 extern void Binomial(int n,int p,Value *result);
00021 extern void CNP(int a,int b,Value *result);
00022 extern void Gcd(Value a,Value b,Value *result);
00023 extern int First_Non_Zero(Value *p, unsigned length);
00024 extern Vector *Vector_Alloc(unsigned length);
00025 extern void Vector_Free(Vector *vector);
00026 extern void  Vector_Print(FILE *Dst,char *Format,Vector *Vec);
00027 extern Vector *Vector_Read(void);
00028 extern void Vector_Set(Value *p,int n,unsigned length);
00029 extern void Vector_Exchange(Value *p1, Value *p2, unsigned length);
00030 extern void Vector_Copy(Value *p1, Value *p2, unsigned length);
00031 extern void Vector_Add(Value *p1,Value *p2,Value *p3,unsigned length);
00032 extern void Vector_Sub(Value *p1,Value *p2,Value *p3,unsigned length);
00033 extern void Vector_Or(Value *p1,Value *p2,Value *p3,unsigned length);
00034 extern void Vector_Scale(Value *p1, Value *p2, Value lambda, unsigned
00035                          length);
00036 extern void Vector_AntiScale(Value *p1,Value *p2,Value lambda,
00037                                         unsigned length);
00038 extern void Inner_Product(Value *p1,Value *p2,unsigned length, Value *result);
00039 extern void Vector_Max(Value *p,unsigned length, Value *result);
00040 extern void Vector_Min(Value *p,unsigned length, Value *result);
00041 extern void Vector_Combine(Value *p1,Value *p2,Value *p3,Value
00042                             lambda, Value mu, unsigned length);
00043 extern int  Vector_Equal(Value *Vec1,Value *Vec2,unsigned n);
00044 extern void Vector_Min_Not_Zero(Value *p,unsigned length,int *index,Value
00045                      *result);
00046 extern void Vector_Gcd(Value *p,unsigned length,Value *result);
00047 extern void Vector_Map(Value *p1,Value *p2,Value *p3,unsigned
00048                        length, Value *(*f)());
00049 extern void Vector_Normalize(Value *p,unsigned length);
00050 extern void Vector_Normalize_Positive(Value *p,int length,
00051                                       int pos);
00052 extern void Vector_Reduce(Value *p,unsigned length,
00053                   void(*f)(Value,Value *),Value *result);
00054 extern void Vector_Sort(Value *vector,unsigned n);
00055 
00056 #if defined(__cplusplus)
00057 }
00058 #endif
00059 
00060 #else /* (defined(__STDC__) || defined(__cplusplus)) */
00061 
00062 extern void Factorial(/*int n,Value *result*/);
00063 extern void Binomial(/*int n,int p,Value *result*/);
00064 extern void CNP(/*int a,int b,Value *result*/);
00065 extern void Gcd(/*Value a,Value b,Value *result*/);
00066 extern int First_Non_Zero(/*Value *p, unsigned length*/);
00067 extern Vector *Vector_Alloc(/*unsigned length*/);
00068 extern void Vector_Free(/*Vector *vector*/);
00069 extern void  Vector_Print(/*FILE *Dst,char *Format,Vector *Vec*/);
00070 extern Vector *Vector_Read(/*void*/);
00071 extern void Vector_Set(/*Value *p,int n,unsigned length*/);
00072 extern void Vector_Exchange(/*Value *p1, Value *p2, unsigned length*/);
00073 extern void Vector_Copy(/*Value *p1, Value *p2, unsigned length*/);
00074 extern void Vector_Add(/*Value *p1,Value *p2,Value *p3,unsigned length*/);
00075 extern void Vector_Sub(/*Value *p1,Value *p2,Value *p3,unsigned length*/);
00076 extern void Vector_Or(/*Value *p1,Value *p2,Value *p3,unsigned length*/);
00077 extern void Vector_Scale(/*Value *p1, Value *p2, Value lambda, unsigned
00078                          length*/);
00079 extern void Vector_AntiScale(/*Value *p1,Value *p2,Value lambda,
00080                              unsigned length*/);
00081 extern void Inner_Product(/*Value *p1,Value *p2,unsigned length, Value *result*/);
00082 extern void Vector_Max(/*Value *p,unsigned length, Value *result*/);
00083 extern void Vector_Min(/*Value *p,unsigned length, Value *result*/);
00084 extern void Vector_Combine(/*Value *p1,Value *p2,Value *p3,Value
00085                             lambda, Value mu, unsigned length*/);
00086 extern int  Vector_Equal(/*Value *Vec1,Value *Vec2,unsigned n*/);
00087 extern void Vector_Min_Not_Zero(/*Value *p,unsigned length,int *index,Value
00088           *result*/);
00089 extern void Vector_Gcd(/*Value *p,unsigned length,Value *result*/);
00090 extern void Vector_Map(/*Value *p1,Value *p2,Value *p3,unsigned
00091                        length, Value *(*f)()*/);
00092 extern void Vector_Normalize(/*Value *p,unsigned length*/);
00093 extern void Vector_Normalize_Positive(/*Value *p,int length,
00094                                       int pos*/);
00095 extern void Vector_Reduce(/*Value *p,unsigned length,
00096                    void(*f)(Value,Value *),Value *result*/);
00097 extern void Vector_Sort(/*Value *vector,unsigned n*/);
00098 
00099 
00100 #endif /* (defined(__STDC__) || defined(__cplusplus)) */
00101 #endif /* _vector_H_ */
00102 
00103 
00104 
00105 
00106 
00107 
00108 
00109 

Generated on Mon Sep 12 15:15:11 2005 for polylib by doxygen 1.3.5