[Rd] fft
Martin.Schlather@uni-bayreuth.de
Martin.Schlather@uni-bayreuth.de
Fri, 01 Mar 2002 08:56:17 +0100
This is a multi-part message in MIME format.
--------------CFA855794B7333D088726B1A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi,
I have problems when calling fft_factor and fft_work directly in my
C-code. Martin Maechler already told me that I should not do this --
anyway, the code works fine if the length of the vector is a multiple
of 2,3,5.
If the length of the vector has different form I get, in some cases, a
segmentation fault when work and iwork are freed (I use C's malloc to
allocate memory for work and iwork). No or less problems occur if I
allocate more memory than stated in src/appl/fft.c.
However R's fft in called in R does not fail.
I would be grateful if anybody would tell me why this happens or to
which fact I did not pay attention.
Please find attached the package containing the relevant files.
Details can be found in tests/test.R
Many thanks in advance.
Martin
--
Martin Schlather email: Martin.Schlather@uni-bayreuth.de
Abteilung Bodenphysik phone: +49 (0)921 55 2193
Univ. Bayreuth Fax : +49 (0)921 55 2246
D -- 95440 Bayreuth, Germany http://www.geo.uni-bayreuth.de/~martin/
--------------CFA855794B7333D088726B1A
Content-Type: application/x-gzip;
name="FFT_0.0.0.tar.gz"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="FFT_0.0.0.tar.gz"
H4sICKkyfzwCA0ZGVF8wLjAuMC50YXIA7Rrtctu40X+Lp9iT2xvSoShSEiXXtjzNJXbOM06a
UZxOZ9KMB6JACQ0JckDStu4m9+xdgB+WlcR36ZwV94q1LQKLBbjYXewu1jo9vejtPDB43tAb
BwE+PW88GuqnP6yeNex44+FgPBr4/cDf8Xx/6Ps7EOxsAcq8oBJgJw+XMS2WTH6Rjsl85w8H
p6j/5ydvnk3PXl+c/f3Vw+jf97xRre/P6T9AZWv9+6P+aDxCerSDwQ54Rv8PDq9p+IEu2AGg
IUC3C7NyAZJlqSzIP3DDPBUH4Ln4Qy54ESPdGsHTslim8gBeUllwAW8aCcJRhXFbzN9Kwbsz
upIMp7hzdkxeUi4K/GP/5fznLGNinh/AFKzjCfju0PVsxO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ihE7ZGPGtJTR+eQCUN3/EcdMueTqMa2d1HqQn1rlQ5XMtOTXMwtems53BfKXOAL0sd4H7T
r/n5PaWsCqL/d/f/s1fPT/75Let/t/f/ofrih/7+19DEfwMGDBgwYMCAAQMGDBgwYMCAAQMG
DBgwYMCAAQMGDBgwYMCAAQMGfg3+A2oMCkwAUAAA
--------------CFA855794B7333D088726B1A--
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._