00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #include <iostream.h>
00017 #include "strctbse.h"
00018 #include "datahndl.h"
00019
00020
00021 #ifndef __CAMBINARYENGINE__
00022 #define __CAMBINARYENGINE__
00023
00024 #include "mvaimpexp.h"
00025
00026 class __IMPEXP__ CAMbinaryEngine
00027 {
00028
00029 public :
00030
00031
00032
00033
00034 static void doubleAequalToB(CAMstructureBase &Astructure, CAMdataHandler &Adata,
00035 const CAMstructureBase &Bstructure, const CAMdataHandler &Bdata);
00036 static void doubleAequalToMinusB(CAMstructureBase &Astructure, CAMdataHandler &Adata,
00037 const CAMstructureBase &Bstructure, const CAMdataHandler &Bdata);
00038 static void doubleAplusEqualB(CAMstructureBase &Astructure, CAMdataHandler &Adata,
00039 const CAMstructureBase &Bstructure, const CAMdataHandler &Bdata);
00040 static void doubleAminusEqualB(CAMstructureBase &Astructure, CAMdataHandler &Adata,
00041 const CAMstructureBase &Bstructure, const CAMdataHandler &Bdata);
00042 static void doubleAtimesEqualB(CAMstructureBase &Astructure, CAMdataHandler &Adata,
00043 const CAMstructureBase &Bstructure, const CAMdataHandler &Bdata);
00044 static void doubleAdivideEqualB(CAMstructureBase &Astructure, CAMdataHandler &Adata,
00045 const CAMstructureBase &Bstructure, const CAMdataHandler &Bdata);
00046 static void doubleCequalAplusB(const CAMstructureBase &Astructure, const CAMdataHandler &Adata,
00047 const CAMstructureBase &Bstructure, const CAMdataHandler &Bdata,
00048 CAMstructureBase &Cstructure, CAMdataHandler &Cdata);
00049 static void doubleCequalAminusB(const CAMstructureBase &Astructure, const CAMdataHandler &Adata,
00050 const CAMstructureBase &Bstructure, const CAMdataHandler &Bdata,
00051 CAMstructureBase &Cstructure, CAMdataHandler &Cdata);
00052 static void doubleCequalAtimesB(const CAMstructureBase &Astructure, const CAMdataHandler &Adata,
00053 const CAMstructureBase &Bstructure, const CAMdataHandler &Bdata,
00054 CAMstructureBase &Cstructure, CAMdataHandler &Cdata);
00055 static void doubleCequalAdivideB(const CAMstructureBase &Astructure, const CAMdataHandler &Adata,
00056 const CAMstructureBase &Bstructure, const CAMdataHandler &Bdata,
00057 CAMstructureBase &Cstructure, CAMdataHandler &Cdata);
00058 static void doubleAequalToAlpha(CAMstructureBase &Astructure, CAMdataHandler &Adata,
00059 double alpha);
00060 static void doubleAplusEqualAlpha(CAMstructureBase &Astructure, CAMdataHandler &Adata,
00061 double alpha);
00062 static void doubleAminusEqualAlpha(CAMstructureBase &Astructure, CAMdataHandler &Adata,
00063 double alpha);
00064 static void doubleAtimesEqualAlpha(CAMstructureBase &Astructure, CAMdataHandler &Adata,
00065 double alpha);
00066 static void doubleAdivideEqualAlpha(CAMstructureBase &Astructure, CAMdataHandler &Adata,
00067 double alpha);
00068 static void doubleMaxValue(double* data, long n, double& maxValue);
00069 static void doubleMinValue(double* data, long n, double& minValue);
00070 static void doubleMaxAbsValue(double* data, long n, double& maxAbsValue);
00071 static void doubleMinAbsValue(double* data, long n, double& minAbsValue);
00072 static void doublepNorm(double* data, long n, double p, double& pNormValue);
00073
00074 };
00075
00076 #endif
00077
00078
00079
00080
00081
00082
00083
00084