Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00011 #include <df1b2fun.h>
00012
00017 df1b2vector operator / (const df1b2vector& _v,const df1b2variable& x)
00018 {
00019
00020 ADUNCONST(df1b2vector,v);
00021 int mmin=v.indexmin();
00022 int mmax=v.indexmax();
00023 df1b2vector tmp;
00024 tmp.noallocate(mmin,mmax);
00025 for (int i=mmin;i<=mmax;i++) tmp(i)=v(i)/x;
00026 return tmp;
00027 }
00028
00033 df1b2vector operator / (const df1b2variable& x,const df1b2vector& _v)
00034 {
00035 ADUNCONST(df1b2vector,v);
00036
00037 int mmin=v.indexmin();
00038 int mmax=v.indexmax();
00039 df1b2vector tmp;
00040 tmp.noallocate(mmin,mmax);
00041 for (int i=mmin;i<=mmax;i++) tmp(i)=x/v(i);
00042 return tmp;
00043 }
00044
00049 df1b2vector operator / (double x,const df1b2vector& _v)
00050 {
00051 ADUNCONST(df1b2vector,v);
00052
00053 int mmin=v.indexmin();
00054 int mmax=v.indexmax();
00055 df1b2vector tmp;
00056 tmp.noallocate(mmin,mmax);
00057 for (int i=mmin;i<=mmax;i++) tmp(i)=x/v(i);
00058 return tmp;
00059 }
00060
00061
00066 df1b2vector operator / (const dvector& v,const df1b2variable& x)
00067 {
00068
00069 int mmin=v.indexmin();
00070 int mmax=v.indexmax();
00071 df1b2vector tmp;
00072 tmp.noallocate(mmin,mmax);
00073 for (int i=mmin;i<=mmax;i++) tmp(i)=v(i)/x;
00074 return tmp;
00075 }
00076
00081 df1b2vector operator / (const df1b2vector& _v,double x)
00082 {
00083 ADUNCONST(df1b2vector,v);
00084
00085 int mmin=v.indexmin();
00086 int mmax=v.indexmax();
00087 df1b2vector tmp;
00088 tmp.noallocate(mmin,mmax);
00089 for (int i=mmin;i<=mmax;i++) tmp(i)=v(i)/x;
00090 return tmp;
00091 }
00092
00097 df1b2vector operator / (const double& x,const df1b2vector& _v)
00098 {
00099 ADUNCONST(df1b2vector,v);
00100
00101
00102 int mmin=v.indexmin();
00103 int mmax=v.indexmax();
00104 df1b2vector tmp;
00105 tmp.noallocate(mmin,mmax);
00106 for (int i=mmin;i<=mmax;i++) tmp(i)=x/v(i);
00107 return tmp;
00108 }