Changeset 663 in Sophya for trunk/SophyaLib/NTools
- Timestamp:
- Nov 29, 1999, 1:48:11 PM (26 years ago)
- Location:
- trunk/SophyaLib/NTools
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/Makefile
r510 r663 3 3 all: $(LIB)libNTools.a 4 4 clean: 5 rm -f $(OBJ)cimage.o $(OBJ)cspline.o $(OBJ)cvector.o $(OBJ)datacards.o $(OBJ)datatypes.o $(OBJ)dates.o $(OBJ)difeq.o $(OBJ)dvlist.o $(OBJ)dynccd.o $(OBJ)fct1dfit.o $(OBJ)fct2dfit.o $(OBJ)fftserver.o $(OBJ)generaldata.o $(OBJ)generalfit.o $(OBJ)hisprof.o $(OBJ)histos.o $(OBJ)histos2.o $(OBJ)imageop.o $(OBJ)integ.o $(OBJ)linfit.o $(OBJ)matrix.o $(OBJ)median.o $(OBJ)ntupintf.o $(OBJ)ntuple.o $(OBJ)outilsinit.o $(OBJ)perandom.o $(OBJ)poly.o $(OBJ) pversion.o $(OBJ)rk4cdifeq.o $(OBJ)rzimage.o $(OBJ)simplesort.o $(OBJ)tabmath.o $(OBJ)tmatrix.o $(OBJ)tvector.o $(OBJ)utils.o $(OBJ)datime.o $(OBJ)fftpackc.o $(OBJ)matxop.o $(OBJ)nbmath.o $(OBJ)nbrandom.o $(OBJ)nbtri.o $(OBJ)strutil.o6 rm $(LIB)libNTools.a7 $(LIB)libNTools.a : $(OBJ)cimage.o $(OBJ)cspline.o $(OBJ)cvector.o $(OBJ)datacards.o $(OBJ)datatypes.o $(OBJ)dates.o $(OBJ)datime.o $(OBJ)difeq.o $(OBJ)dvlist.o $(OBJ)dynccd.o $(OBJ)fct1dfit.o $(OBJ)fct2dfit.o $(OBJ)fftpackc.o $(OBJ)fftserver.o $(OBJ)generaldata.o $(OBJ)generalfit.o $(OBJ)hisprof.o $(OBJ)histos.o $(OBJ)histos2.o $(OBJ)imageop.o $(OBJ)integ.o $(OBJ)linfit.o $(OBJ)matrix.o $(OBJ)matxop.o $(OBJ)median.o $(OBJ)nbmath.o $(OBJ)nbrandom.o $(OBJ)nbtri.o $(OBJ)ntupintf.o $(OBJ)ntuple.o $(OBJ)outilsinit.o $(OBJ)perandom.o $(OBJ)poly.o $(OBJ)pversion.o $(OBJ)rk4cdifeq.o $(OBJ)rzimage.o $(OBJ)simplesort.o $(OBJ)strutil.o $(OBJ)tabmath.o $(OBJ)tmatrix.o $(OBJ)tvector.o $(OBJ)utils.o5 rm -f $(OBJ)cimage.o $(OBJ)cspline.o $(OBJ)cvector.o $(OBJ)datacards.o $(OBJ)datatypes.o $(OBJ)dates.o $(OBJ)difeq.o $(OBJ)dvlist.o $(OBJ)dynccd.o $(OBJ)fct1dfit.o $(OBJ)fct2dfit.o $(OBJ)fftserver.o $(OBJ)generaldata.o $(OBJ)generalfit.o $(OBJ)hisprof.o $(OBJ)histos.o $(OBJ)histos2.o $(OBJ)imageop.o $(OBJ)integ.o $(OBJ)linfit.o $(OBJ)matrix.o $(OBJ)median.o $(OBJ)ntupintf.o $(OBJ)ntuple.o $(OBJ)outilsinit.o $(OBJ)perandom.o $(OBJ)poly.o $(OBJ)rk4cdifeq.o $(OBJ)rzimage.o $(OBJ)simplesort.o $(OBJ)tabmath.o $(OBJ)tmatrix.o $(OBJ)tvector.o $(OBJ)utils.o $(OBJ)datime.o $(OBJ)fftpackc.o $(OBJ)matxop.o $(OBJ)nbmath.o $(OBJ)nbrandom.o $(OBJ)nbtri.o $(OBJ)strutil.o 6 rm -f $(LIB)libNTools.a 7 $(LIB)libNTools.a : $(OBJ)cimage.o $(OBJ)cspline.o $(OBJ)cvector.o $(OBJ)datacards.o $(OBJ)datatypes.o $(OBJ)dates.o $(OBJ)datime.o $(OBJ)difeq.o $(OBJ)dvlist.o $(OBJ)dynccd.o $(OBJ)fct1dfit.o $(OBJ)fct2dfit.o $(OBJ)fftpackc.o $(OBJ)fftserver.o $(OBJ)generaldata.o $(OBJ)generalfit.o $(OBJ)hisprof.o $(OBJ)histos.o $(OBJ)histos2.o $(OBJ)imageop.o $(OBJ)integ.o $(OBJ)linfit.o $(OBJ)matrix.o $(OBJ)matxop.o $(OBJ)median.o $(OBJ)nbmath.o $(OBJ)nbrandom.o $(OBJ)nbtri.o $(OBJ)ntupintf.o $(OBJ)ntuple.o $(OBJ)outilsinit.o $(OBJ)perandom.o $(OBJ)poly.o $(OBJ)rk4cdifeq.o $(OBJ)rzimage.o $(OBJ)simplesort.o $(OBJ)strutil.o $(OBJ)tabmath.o $(OBJ)tmatrix.o $(OBJ)tvector.o $(OBJ)utils.o 8 8 $(ARCXX) $(ARCXXFLAGS) $@ $? 9 9 ifeq ($(CXX),cxx) 10 $(CXX) $? $(CPPFLAGS) $(CXXFLAGS) -L$(LIB) -lNTools -lS amba-o $(OBJ)xx.x -Hf10 $(CXX) $? $(CPPFLAGS) $(CXXFLAGS) -L$(LIB) -lNTools -lSysTools -o $(OBJ)xx.x -Hf 11 11 endif 12 12 … … 19 19 $(INC)objfio.h \ 20 20 $(INC)anydataobj.h fct1dfit.h generalfit.h \ 21 matrix.h peida.h utils.h fmath.h cvector.h generaldata.h ntupintf.h \ 22 poly.h histos.h nbconst.h 21 tvector.h tmatrix.h $(INC)ndatablock.h \ 22 generaldata.h ntupintf.h poly.h peida.h utils.h fmath.h histos.h \ 23 nbconst.h 23 24 $(OBJ)cspline.o: cspline.cc $(INC)machdefs.h \ 24 25 $(INC)pclassids.h nbtri.h cspline.h \ 25 cvector.h matrix.h peida.h utils.h \ 26 $(INC)perrors.h \ 27 $(INC)pexceptions.h fmath.h \ 28 $(INC)ppersist.h \ 29 $(INC)md5.h 26 $(INC)pexceptions.h 30 27 $(OBJ)cvector.o: cvector.cc $(INC)machdefs.h \ 31 28 $(INC)pclassids.h cvector.h matrix.h \ 32 29 peida.h utils.h $(INC)perrors.h \ 33 30 $(INC)pexceptions.h fmath.h \ 34 $(INC) ppersist.h \35 $(INC) md5.h generalfit.h generaldata.h \36 $(INC) objfio.h \37 $(INC)anydataobj.h ntupintf.h poly.h \38 tvector.h tmatrix.h $(INC)ndatablock.h31 $(INC)anydataobj.h \ 32 $(INC)ppersist.h \ 33 $(INC)md5.h generalfit.h tvector.h \ 34 tmatrix.h $(INC)ndatablock.h generaldata.h \ 35 $(INC)objfio.h ntupintf.h poly.h 39 36 $(OBJ)datacards.o: datacards.cc $(INC)machdefs.h \ 40 37 $(INC)pclassids.h datacards.h peida.h \ … … 50 47 $(OBJ)difeq.o: difeq.cc difeq.h $(INC)machdefs.h \ 51 48 $(INC)pclassids.h \ 52 $(INC)pexceptions.h cvector.h matrix.h \ 53 peida.h utils.h $(INC)perrors.h fmath.h \ 54 $(INC)ppersist.h \ 55 $(INC)md5.h \ 49 $(INC)pexceptions.h tvector.h tmatrix.h \ 50 $(INC)ppersist.h \ 51 $(INC)md5.h \ 52 $(INC)anydataobj.h \ 53 $(INC)ndatablock.h \ 56 54 $(INC)ctimer.h 57 55 $(OBJ)dvlist.o: dvlist.cc $(INC)machdefs.h \ … … 69 67 $(INC)pexceptions.h \ 70 68 $(INC)md5.h peida.h utils.h \ 71 $(INC)perrors.h cvector.h matrix.h \ 72 nbrandom.h cimage.h rzimage.h rzvect.h datatypes.h dvlist.h dynccd.h 69 $(INC)perrors.h tvector.h tmatrix.h \ 70 $(INC)ndatablock.h nbrandom.h cimage.h \ 71 rzimage.h rzvect.h datatypes.h dvlist.h dynccd.h 73 72 $(OBJ)fct1dfit.o: fct1dfit.cc $(INC)machdefs.h \ 74 73 $(INC)pclassids.h fct1dfit.h generalfit.h \ 75 $(INC)pexceptions.h matrix.h peida.h \ 76 utils.h $(INC)perrors.h fmath.h \ 77 $(INC)ppersist.h \ 78 $(INC)md5.h cvector.h generaldata.h \ 79 $(INC)objfio.h \ 80 $(INC)anydataobj.h ntupintf.h poly.h \ 81 nbconst.h tabmath.h 74 $(INC)pexceptions.h tvector.h tmatrix.h \ 75 $(INC)ppersist.h \ 76 $(INC)md5.h \ 77 $(INC)anydataobj.h \ 78 $(INC)ndatablock.h generaldata.h \ 79 $(INC)objfio.h ntupintf.h poly.h peida.h \ 80 utils.h $(INC)perrors.h fmath.h nbconst.h \ 81 tabmath.h 82 82 $(OBJ)fct2dfit.o: fct2dfit.cc $(INC)machdefs.h \ 83 83 $(INC)pclassids.h fct2dfit.h generalfit.h \ 84 $(INC)pexceptions.h matrix.h peida.h \ 85 utils.h $(INC)perrors.h fmath.h \ 86 $(INC)ppersist.h \ 87 $(INC)md5.h cvector.h generaldata.h \ 88 $(INC)objfio.h \ 89 $(INC)anydataobj.h ntupintf.h poly.h \ 90 nbconst.h tabmath.h simps2d.h 91 $(OBJ)fftserver.o: fftserver.cc fftserver.h cvector.h matrix.h peida.h \ 92 $(INC)machdefs.h \ 93 $(INC)pclassids.h utils.h \ 94 $(INC)perrors.h \ 95 $(INC)pexceptions.h fmath.h \ 96 $(INC)ppersist.h \ 97 $(INC)md5.h 84 $(INC)pexceptions.h tvector.h tmatrix.h \ 85 $(INC)ppersist.h \ 86 $(INC)md5.h \ 87 $(INC)anydataobj.h \ 88 $(INC)ndatablock.h generaldata.h \ 89 $(INC)objfio.h ntupintf.h poly.h peida.h \ 90 utils.h $(INC)perrors.h fmath.h nbconst.h \ 91 tabmath.h simps2d.h 92 $(OBJ)fftserver.o: fftserver.cc fftserver.h tvector.h tmatrix.h \ 93 $(INC)machdefs.h \ 94 $(INC)pclassids.h \ 95 $(INC)ppersist.h \ 96 $(INC)pexceptions.h \ 97 $(INC)md5.h \ 98 $(INC)anydataobj.h \ 99 $(INC)ndatablock.h 98 100 $(OBJ)generaldata.o: generaldata.cc \ 99 101 $(INC)machdefs.h \ 100 102 $(INC)pclassids.h strutil.h nbtri.h \ 101 generalfit.h $(INC)pexceptions.h matrix.h \ 102 peida.h utils.h $(INC)perrors.h fmath.h \ 103 $(INC)ppersist.h \ 104 $(INC)md5.h cvector.h generaldata.h \ 105 $(INC)objfio.h \ 106 $(INC)anydataobj.h ntupintf.h poly.h 103 generalfit.h $(INC)pexceptions.h tvector.h \ 104 tmatrix.h $(INC)ppersist.h \ 105 $(INC)md5.h \ 106 $(INC)anydataobj.h \ 107 $(INC)ndatablock.h generaldata.h \ 108 $(INC)objfio.h ntupintf.h poly.h peida.h \ 109 utils.h $(INC)perrors.h fmath.h 107 110 $(OBJ)generalfit.o: generalfit.cc $(INC)machdefs.h \ 108 111 $(INC)pclassids.h \ 109 $(INC)pexceptions.h generalfit.h matrix.h \ 110 peida.h utils.h $(INC)perrors.h fmath.h \ 111 $(INC)ppersist.h \ 112 $(INC)md5.h cvector.h generaldata.h \ 113 $(INC)objfio.h \ 114 $(INC)anydataobj.h ntupintf.h poly.h 112 $(INC)pexceptions.h generalfit.h tvector.h \ 113 tmatrix.h $(INC)ppersist.h \ 114 $(INC)md5.h \ 115 $(INC)anydataobj.h \ 116 $(INC)ndatablock.h generaldata.h \ 117 $(INC)objfio.h ntupintf.h poly.h peida.h \ 118 utils.h $(INC)perrors.h fmath.h 115 119 $(OBJ)hisprof.o: hisprof.cc $(INC)machdefs.h \ 116 120 $(INC)pclassids.h hisprof.h peida.h utils.h \ 117 121 $(INC)perrors.h \ 118 $(INC)pexceptions.h fmath.h cvector.h \ 119 matrix.h $(INC)ppersist.h \ 120 $(INC)md5.h histos.h \ 121 $(INC)objfio.h \ 122 $(INC)anydataobj.h 122 $(INC)pexceptions.h fmath.h tvector.h \ 123 tmatrix.h $(INC)ppersist.h \ 124 $(INC)md5.h \ 125 $(INC)anydataobj.h \ 126 $(INC)ndatablock.h histos.h \ 127 $(INC)objfio.h 123 128 $(OBJ)histos.o: histos.cc $(INC)machdefs.h \ 124 129 $(INC)pclassids.h histos.h \ … … 128 133 $(INC)pexceptions.h \ 129 134 $(INC)md5.h peida.h utils.h \ 130 $(INC)perrors.h fmath.h cvector.h matrix.h \ 131 poly.h strutil.h generalfit.h generaldata.h ntupintf.h 135 $(INC)perrors.h fmath.h tvector.h tmatrix.h \ 136 $(INC)ndatablock.h poly.h strutil.h \ 137 generalfit.h generaldata.h ntupintf.h 132 138 $(OBJ)histos2.o: histos2.cc $(INC)machdefs.h \ 133 139 $(INC)pclassids.h histos2.h peida.h utils.h \ … … 137 143 $(INC)anydataobj.h \ 138 144 $(INC)ppersist.h \ 139 $(INC)md5.h cvector.h matrix.h generalfit.h \ 145 $(INC)md5.h tvector.h tmatrix.h \ 146 $(INC)ndatablock.h generalfit.h \ 140 147 generaldata.h ntupintf.h poly.h 141 148 $(OBJ)imageop.o: imageop.cc $(INC)machdefs.h \ … … 146 153 $(INC)anydataobj.h \ 147 154 $(INC)ppersist.h \ 148 $(INC)md5.h cvector.h matrix.h datatypes.h \149 imageop.h cimage.h rzimage.h rzvect.h dvlist.h cspline.h dynccd.h \150 nbtri.h155 $(INC)md5.h tvector.h tmatrix.h \ 156 $(INC)ndatablock.h datatypes.h imageop.h \ 157 cimage.h rzimage.h rzvect.h dvlist.h cspline.h dynccd.h nbtri.h 151 158 $(OBJ)integ.o: integ.cc integ.h $(INC)machdefs.h \ 152 159 $(INC)pclassids.h \ 153 $(INC)pexceptions.h generalfit.h matrix.h \ 154 peida.h utils.h $(INC)perrors.h fmath.h \ 155 $(INC)ppersist.h \ 156 $(INC)md5.h cvector.h generaldata.h \ 157 $(INC)objfio.h \ 158 $(INC)anydataobj.h ntupintf.h poly.h 160 $(INC)pexceptions.h generalfit.h tvector.h \ 161 tmatrix.h $(INC)ppersist.h \ 162 $(INC)md5.h \ 163 $(INC)anydataobj.h \ 164 $(INC)ndatablock.h generaldata.h \ 165 $(INC)objfio.h ntupintf.h poly.h peida.h \ 166 utils.h $(INC)perrors.h fmath.h 159 167 $(OBJ)linfit.o: linfit.cc $(INC)machdefs.h \ 160 168 $(INC)pclassids.h peida.h utils.h \ 161 169 $(INC)perrors.h \ 162 170 $(INC)pexceptions.h fmath.h linfit.h \ 163 matrix.h $(INC)ppersist.h \ 164 $(INC)md5.h cvector.h 171 tvector.h tmatrix.h $(INC)ppersist.h \ 172 $(INC)md5.h \ 173 $(INC)anydataobj.h \ 174 $(INC)ndatablock.h 165 175 $(OBJ)matrix.o: matrix.cc $(INC)machdefs.h \ 166 176 $(INC)pclassids.h peida.h utils.h \ 167 177 $(INC)perrors.h \ 168 178 $(INC)pexceptions.h fmath.h matrix.h \ 179 $(INC)anydataobj.h \ 169 180 $(INC)ppersist.h \ 170 181 $(INC)md5.h cvector.h generalfit.h \ 171 generaldata.h $(INC)objfio.h \172 $(INC)anydataobj.h ntupintf.h poly.h \173 tmatrix.h $(INC)ndatablock.h182 tvector.h tmatrix.h $(INC)ndatablock.h \ 183 generaldata.h $(INC)objfio.h ntupintf.h \ 184 poly.h 174 185 $(OBJ)median.o: median.cc 175 186 $(OBJ)ntupintf.o: ntupintf.cc ntupintf.h \ … … 191 202 $(INC)perrors.h \ 192 203 $(INC)pexceptions.h fmath.h \ 193 $(INC) ppersist.h \194 $(INC) md5.h cvector.h poly.h dvlist.h \195 $(INC) objfio.h \196 $(INC) anydataobj.h histos.h histos2.h \197 hisprof.h ntuple.h ntupintf.h generaldata.h tmatrix.h \198 $(INC)ndatablock.h tvector.h cimage.h \204 $(INC)anydataobj.h \ 205 $(INC)ppersist.h \ 206 $(INC)md5.h cvector.h poly.h \ 207 $(INC)objfio.h tvector.h tmatrix.h \ 208 $(INC)ndatablock.h dvlist.h histos.h \ 209 histos2.h hisprof.h ntuple.h ntupintf.h generaldata.h cimage.h \ 199 210 rzimage.h rzvect.h datatypes.h tabmath.h nbconst.h dates.h datime.h 200 211 $(OBJ)perandom.o: perandom.cc $(INC)machdefs.h \ … … 205 216 $(INC)ppersist.h \ 206 217 $(INC)md5.h peida.h utils.h \ 207 $(INC)perrors.h fmath.h cvector.hmatrix.h \208 nbrandom.h pemath.h218 $(INC)perrors.h fmath.h tvector.h tmatrix.h \ 219 $(INC)ndatablock.h nbrandom.h pemath.h 209 220 $(OBJ)poly.o: poly.cc $(INC)machdefs.h \ 210 $(INC)pclassids.h poly.h peida.h utils.h \ 211 $(INC)perrors.h \ 212 $(INC)pexceptions.h fmath.h cvector.h \ 213 matrix.h $(INC)ppersist.h \ 214 $(INC)md5.h linfit.h 215 $(OBJ)pversion.o: pversion.cc pversion.h \ 216 $(INC)peidainit.h \ 217 $(INC)machdefs.h \ 218 $(INC)pclassids.h 221 $(INC)pclassids.h poly.h \ 222 $(INC)objfio.h \ 223 $(INC)anydataobj.h \ 224 $(INC)ppersist.h \ 225 $(INC)pexceptions.h \ 226 $(INC)md5.h peida.h utils.h \ 227 $(INC)perrors.h fmath.h tvector.h tmatrix.h \ 228 $(INC)ndatablock.h linfit.h 219 229 $(OBJ)rk4cdifeq.o: rk4cdifeq.cc $(INC)machdefs.h \ 220 230 $(INC)pclassids.h rk4cdifeq.h difeq.h \ 221 $(INC)pexceptions.h cvector.h matrix.h \ 222 peida.h utils.h $(INC)perrors.h fmath.h \ 223 $(INC)ppersist.h \ 224 $(INC)md5.h \ 231 $(INC)pexceptions.h tvector.h tmatrix.h \ 232 $(INC)ppersist.h \ 233 $(INC)md5.h \ 234 $(INC)anydataobj.h \ 235 $(INC)ndatablock.h \ 225 236 $(INC)ctimer.h 226 237 $(OBJ)rzimage.o: rzimage.cc $(INC)machdefs.h \ … … 231 242 $(INC)md5.h dvlist.h \ 232 243 $(INC)objfio.h \ 233 $(INC)anydataobj.h generalfit.h matrix.h \ 234 peida.h utils.h fmath.h cvector.h generaldata.h ntupintf.h poly.h 244 $(INC)anydataobj.h generalfit.h tvector.h \ 245 tmatrix.h $(INC)ndatablock.h generaldata.h \ 246 ntupintf.h poly.h peida.h utils.h fmath.h 235 247 $(OBJ)simplesort.o: simplesort.cc $(INC)machdefs.h \ 236 248 $(INC)pclassids.h simplesort.h peida.h \ … … 248 260 $(INC)anydataobj.h \ 249 261 $(INC)ndatablock.h \ 250 $(INC)objfio.h matrix.h peida.h utils.h \251 $(INC)perrors.h fmath.h generalfit.h \252 cvector.h generaldata.h ntupintf.h poly.h tvector.h262 $(INC)objfio.h generalfit.h tvector.h \ 263 generaldata.h ntupintf.h poly.h peida.h utils.h \ 264 $(INC)perrors.h fmath.h 253 265 $(OBJ)tvector.o: tvector.cc $(INC)machdefs.h \ 254 266 $(INC)pclassids.h \ … … 258 270 $(INC)anydataobj.h \ 259 271 $(INC)ndatablock.h \ 260 $(INC)objfio.h generalfit.h matrix.h \261 peida.h utils.h $(INC)perrors.h fmath.h \262 cvector.h generaldata.h ntupintf.h poly.h272 $(INC)objfio.h generalfit.h generaldata.h \ 273 ntupintf.h poly.h peida.h utils.h \ 274 $(INC)perrors.h fmath.h 263 275 $(OBJ)utils.o: utils.cc $(INC)machdefs.h \ 264 276 $(INC)pclassids.h utils.h \ -
trunk/SophyaLib/NTools/fftpackc.c
r459 r663 8 8 /* #include "f2c.h" -- Remplace par ce qui suit */ 9 9 #include "fftpackc.h" 10 #include <math.h> 10 11 11 12 /* ------ File cfftb.f ------ */ … … 26 27 iw1 = *n + *n + 1; 27 28 iw2 = iw1 + *n + *n; 28 cfftb1_(n, &c__[1], &wsave[1], &wsave[iw1], &wsave[iw2]);29 cfftb1_(n, &c__[1], &wsave[1], &wsave[iw1], (int *)&wsave[iw2]); /* (int *) ajoute - Reza 29/11/99 */ 29 30 return 0; 30 31 } /* cfftb_ */ … … 179 180 iw1 = *n + *n + 1; 180 181 iw2 = iw1 + *n + *n; 181 cfftf1_(n, &c__[1], &wsave[1], &wsave[iw1], &wsave[iw2]);182 cfftf1_(n, &c__[1], &wsave[1], &wsave[iw1], (int *)&wsave[iw2]); /* (int *) ajoute - Reza 29/11/99 */ 182 183 return 0; 183 184 } /* cfftf_ */ … … 330 331 iw1 = *n + *n + 1; 331 332 iw2 = iw1 + *n + *n; 332 cffti1_(n, &wsave[iw1], &wsave[iw2]);333 cffti1_(n, &wsave[iw1], (int *)&wsave[iw2]); /* (int *) ajoute Reza 29/11/99 */ 333 334 return 0; 334 335 } /* cffti_ */ … … 344 345 integer i__1, i__2, i__3; 345 346 346 /* Builtin functions */ 347 double cos(doublereal), sin(doublereal); 347 /* Builtin functions */ 348 /* double cos(doublereal), sin(doublereal); commente, remplace par math.h - Reza 29/11/99 */ 348 349 349 350 /* Local variables */ … … 645 646 646 647 /* Builtin functions */ 647 double cos(doublereal); 648 /* double cos(doublereal); commente - Remplace par math.h Reza 29/11/99 */ 648 649 649 650 /* Local variables */ … … 762 763 763 764 /* Builtin functions */ 764 double sin(doublereal), cos(doublereal); 765 /* double sin(doublereal), cos(doublereal); commente - Remplace par math.h Reza 29/11/99 */ 765 766 766 767 /* Local variables */ … … 807 808 808 809 /* Builtin functions */ 809 double cos(doublereal), sin(doublereal); 810 /* double cos(doublereal), sin(doublereal); commente - Remplace par math.h Reza 29/11/99 */ 810 811 811 812 /* Local variables */ … … 2728 2729 2729 2730 /* Builtin functions */ 2730 double cos(doublereal), sin(doublereal); 2731 /* double cos(doublereal), sin(doublereal); commente - Remplace par math.h Reza 29/11/99 */ 2731 2732 2732 2733 /* Local variables */ … … 3460 3461 3461 3462 /* Builtin functions */ 3462 double cos(doublereal), sin(doublereal); 3463 /* double cos(doublereal), sin(doublereal); */ 3463 3464 3464 3465 /* Local variables */ … … 3807 3808 return 0; 3808 3809 } 3809 rfftb1_(n, &r__[1], &wsave[1], &wsave[*n + 1], &wsave[(*n << 1) + 1]);3810 rfftb1_(n, &r__[1], &wsave[1], &wsave[*n + 1], (int *)&wsave[(*n << 1) + 1]); /* (int *) rajoute Reza 29/11/99 */ 3810 3811 return 0; 3811 3812 } /* rfftb_ */ … … 3953 3954 return 0; 3954 3955 } 3955 rfftf1_(n, &r__[1], &wsave[1], &wsave[*n + 1], &wsave[(*n << 1) + 1]);3956 rfftf1_(n, &r__[1], &wsave[1], &wsave[*n + 1], (int *)&wsave[(*n << 1) + 1]); /* (int *) rajoute Reza 29/11/99 */ 3956 3957 return 0; 3957 3958 } /* rfftf_ */ … … 4092 4093 return 0; 4093 4094 } 4094 rffti1_(n, &wsave[*n + 1], &wsave[(*n << 1) + 1]);4095 rffti1_(n, &wsave[*n + 1], (int *)&wsave[(*n << 1) + 1]); /* (int *) rajoute Reza 29/11/99 */ 4095 4096 return 0; 4096 4097 } /* rffti_ */ … … 4107 4108 4108 4109 /* Builtin functions */ 4109 double cos(doublereal), sin(doublereal); 4110 /* double cos(doublereal), sin(doublereal); Remplace par math.h , Reza 29/11/99 */ 4110 4111 4111 4112 /* Local variables */ … … 4319 4320 iw2 = iw1 + np1; 4320 4321 iw3 = iw2 + np1; 4321 sint1_(n, &x[1], &wsave[1], &wsave[iw1], &wsave[iw2], &wsave[iw3]);4322 sint1_(n, &x[1], &wsave[1], &wsave[iw1], &wsave[iw2], (int *)&wsave[iw3]); /* (int *) rajoute Reza 29/11/99 */ 4322 4323 return 0; 4323 4324 } /* sint_ */ … … 4420 4421 4421 4422 /* Builtin functions */ 4422 double sin(doublereal); 4423 /* double sin(doublereal); remplace par math.h , Reza 29/11/99 */ 4423 4424 4424 4425 /* Local variables */ … … 4465 4466 iw1 = *n + *n + 1; 4466 4467 iw2 = iw1 + *n + *n; 4467 cdfftb1_(n, &c__[1], &wsave[1], &wsave[iw1], &wsave[iw2]);4468 cdfftb1_(n, &c__[1], &wsave[1], &wsave[iw1], (int *)&wsave[iw2]); /* (int *) rajoute Reza 29/11/99 */ 4468 4469 return 0; 4469 4470 } /* cdfftb_ */ … … 4618 4619 iw1 = *n + *n + 1; 4619 4620 iw2 = iw1 + *n + *n; 4620 cdfftf1_(n, &c__[1], &wsave[1], &wsave[iw1], &wsave[iw2]);4621 cdfftf1_(n, &c__[1], &wsave[1], &wsave[iw1], (int *)&wsave[iw2]); /* (int *) rajoute Reza 29/11/99 */ 4621 4622 return 0; 4622 4623 } /* cdfftf_ */ … … 4769 4770 iw1 = *n + *n + 1; 4770 4771 iw2 = iw1 + *n + *n; 4771 cdffti1_(n, &wsave[iw1], &wsave[iw2]);4772 cdffti1_(n, &wsave[iw1], (int *)&wsave[iw2]); /* (int *) rajoute Reza 29/11/99 */ 4772 4773 return 0; 4773 4774 } /* cdffti_ */ … … 4784 4785 4785 4786 /* Builtin functions */ 4786 double cos(doublereal), sin(doublereal); 4787 /* double cos(doublereal), sin(doublereal); remplace par math.h Reza 29/11/99 */ 4787 4788 4788 4789 /* Local variables */ … … 5084 5085 5085 5086 /* Builtin functions */ 5086 double cos(doublereal); 5087 /* double cos(doublereal); remplace par math.h Reza 29/11/99 */ 5087 5088 5088 5089 /* Local variables */ … … 5201 5202 5202 5203 /* Builtin functions */ 5203 double sin(doublereal), cos(doublereal); 5204 /* double sin(doublereal), cos(doublereal); remplace par math.h Reza 29/11/99 */ 5204 5205 5205 5206 /* Local variables */ … … 5246 5247 5247 5248 /* Builtin functions */ 5248 double cos(doublereal), sin(doublereal); 5249 /* double cos(doublereal), sin(doublereal); remplace par math.h Reza 29/11/99 */ 5249 5250 5250 5251 /* Local variables */ … … 7167 7168 7168 7169 /* Builtin functions */ 7169 double cos(doublereal), sin(doublereal); 7170 /* double cos(doublereal), sin(doublereal); remplace par math.h Reza 29/11/99 */ 7170 7171 7171 7172 /* Local variables */ … … 7899 7900 7900 7901 /* Builtin functions */ 7901 double cos(doublereal), sin(doublereal); 7902 /* double cos(doublereal), sin(doublereal); */ 7902 7903 7903 7904 /* Local variables */ … … 8246 8247 return 0; 8247 8248 } 8248 dfftb1_(n, &r__[1], &wsave[1], &wsave[*n + 1], &wsave[(*n << 1) + 1]);8249 dfftb1_(n, &r__[1], &wsave[1], &wsave[*n + 1], (int *)&wsave[(*n << 1) + 1]); /* (int *) rajoute Reza 29/11/99 */ 8249 8250 return 0; 8250 8251 } /* dfftb_ */ … … 8392 8393 return 0; 8393 8394 } 8394 dfftf1_(n, &r__[1], &wsave[1], &wsave[*n + 1], &wsave[(*n << 1) + 1]);8395 dfftf1_(n, &r__[1], &wsave[1], &wsave[*n + 1], (int *)&wsave[(*n << 1) + 1]);/* (int *) rajoute Reza 29/11/99 */ 8395 8396 return 0; 8396 8397 } /* dfftf_ */ … … 8531 8532 return 0; 8532 8533 } 8533 dffti1_(n, &wsave[*n + 1], &wsave[(*n << 1) + 1]);8534 dffti1_(n, &wsave[*n + 1], (int *)&wsave[(*n << 1) + 1]); /* (int *) rajoute Reza 29/11/99 */ 8534 8535 return 0; 8535 8536 } /* dffti_ */ … … 8546 8547 8547 8548 /* Builtin functions */ 8548 double cos(doublereal), sin(doublereal); 8549 /* double cos(doublereal), sin(doublereal); remplace par math.h Reza 29/11/99 */ 8549 8550 8550 8551 /* Local variables */ … … 8758 8759 iw2 = iw1 + np1; 8759 8760 iw3 = iw2 + np1; 8760 dsint1_(n, &x[1], &wsave[1], &wsave[iw1], &wsave[iw2], &wsave[iw3]);8761 dsint1_(n, &x[1], &wsave[1], &wsave[iw1], &wsave[iw2], (int *) &wsave[iw3]); /* (int *) rajoute Reza 29/11/99 */ 8761 8762 return 0; 8762 8763 } /* dsint_ */ … … 8859 8860 8860 8861 /* Builtin functions */ 8861 double sin(doublereal); 8862 /* double sin(doublereal); remplace par math.h Reza 29/11/99 */ 8862 8863 8863 8864 /* Local variables */ -
trunk/SophyaLib/NTools/tmatrix.h
r552 r663 71 71 inline TMatrix<T>& operator = (T x) 72 72 {if(mNr!=mNc || mNr==0) throw(SzMismatchError("TMatrix::operator= mNc!=mNr ou ==0\n")); 73 for(uint_4 r=0;r<mNr;r++) for(uint_4 c=0;c<mNc;c++) (*this)(r,c)=(r==c)?x: 0;73 for(uint_4 r=0;r<mNr;r++) for(uint_4 c=0;c<mNc;c++) (*this)(r,c)=(r==c)?x:(T)0; 74 74 return *this;} 75 75 // A = B : partage les donnees si "a" est temporaire, clone sinon.
Note:
See TracChangeset
for help on using the changeset viewer.