Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SophyaExtLibs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
SOPHYA
SophyaExtLibs
Commits
1c8598fe
Commit
1c8598fe
authored
24 years ago
by
ansari
Browse files
Options
Downloads
Patches
Plain Diff
Modifs-debug FFTWServer (suite) - Reza 13/2/2001
parent
9394f789
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
IFFTW/fftwserver.cc
+7
-5
7 additions, 5 deletions
IFFTW/fftwserver.cc
with
7 additions
and
5 deletions
IFFTW/fftwserver.cc
+
7
−
5
View file @
1c8598fe
...
...
@@ -208,6 +208,7 @@ void FFTWServer::FFTBackward(TArray< complex<r_8> > const & in, TArray< complex<
}
if
(
_pndb
)
_pndb
->
Recreate
(
in
.
NbDimensions
(),
sz
);
else
_pndb
=
new
FFTWServerPlan
(
in
.
NbDimensions
(),
sz
,
FFTW_BACKWARD
,
false
);
fftwnd_one
(
_pndb
->
pnd
,
(
fftw_complex
*
)(
in
.
Data
())
,
(
fftw_complex
*
)(
out
.
Data
())
);
}
return
;
...
...
@@ -217,11 +218,11 @@ void FFTWServer::FFTBackward(TArray< complex<r_8> > const & in, TArray< complex<
void
FFTWServer
::
FFTForward
(
TArray
<
r_8
>
const
&
in
,
TArray
<
complex
<
r_8
>
>
&
out
)
{
int
rank
=
ckR8
.
CheckResize
(
in
,
out
);
TArray
<
r_8
>
outtemp
(
in
,
false
);
if
(
rank
==
1
)
{
// One dimensional transform
if
(
_p1drf
)
_p1drf
->
Recreate
(
in
.
Size
());
else
_p1drf
=
new
FFTWServerPlan
(
in
.
Size
(),
FFTW_REAL_TO_COMPLEX
,
true
);
TArray
<
r_8
>
outtemp
;
outtemp
.
ReSize
(
in
);
rfftw_one
(
_p1drf
->
rp
,
(
fftw_real
*
)(
in
.
Data
())
,
(
fftw_real
*
)(
outtemp
.
Data
()));
ReShapetoCompl
(
outtemp
,
out
);
}
...
...
@@ -251,13 +252,14 @@ void FFTWServer::FFTBackward(TArray< complex<r_8> > const & in, TArray< r_8 > &
int
rank
=
ckR8
.
CheckResize
(
in
,
out
);
if
(
rank
==
1
)
{
// One dimensional transform
TArray
<
r_8
>
intemp
(
out
,
false
);
TArray
<
r_8
>
intemp
;
intemp
.
ReSize
(
out
);
if
(
_p1drb
)
_p1drb
->
Recreate
(
out
.
Size
());
else
_p1drb
=
new
FFTWServerPlan
(
out
.
Size
(),
FFTW_COMPLEX_TO_REAL
,
true
);
ReShapetoReal
(
in
,
intemp
);
cerr
<<
" DEBUG-FFTWServer::FFTBackward() in =
\n
"
<<
in
<<
endl
;
cerr
<<
" DEBUG-FFTWServer::FFTBackward() intemp =
\n
"
<<
intemp
<<
endl
;
//
cerr << " DEBUG-FFTWServer::FFTBackward() in = \n" << in << endl;
//
cerr << " DEBUG-FFTWServer::FFTBackward() intemp = \n" << intemp << endl;
rfftw_one
(
_p1drb
->
rp
,
(
fftw_real
*
)(
intemp
.
Data
())
,
(
fftw_real
*
)(
out
.
Data
()));
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment