Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TurTLE
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
Operate
Environments
Monitor
Incidents
Service Desk
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
Show more breadcrumbs
TurTLE
TurTLE
Commits
4bb6d851
Commit
4bb6d851
authored
10 years ago
by
Chichi Lalescu
Browse files
Options
Downloads
Patches
Plain Diff
add interleave functionality
parent
472ac086
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/field_descriptor.cpp
+11
-0
11 additions, 0 deletions
src/field_descriptor.cpp
src/field_descriptor.hpp
+5
-0
5 additions, 0 deletions
src/field_descriptor.hpp
with
16 additions
and
0 deletions
src/field_descriptor.cpp
+
11
−
0
View file @
4bb6d851
...
...
@@ -227,6 +227,17 @@ int field_descriptor::transpose(
return
EXIT_SUCCESS
;
}
int
field_descriptor
::
interleave
(
float
*
input
,
float
*
output
,
int
dim
)
{
for
(
int
k
=
0
;
k
<
this
->
local_size
;
k
++
)
for
(
int
j
=
0
;
j
<
dim
;
j
++
)
output
[
k
*
dim
+
j
]
=
input
[
j
*
this
->
local_size
+
k
];
return
EXIT_SUCCESS
;
}
field_descriptor
*
field_descriptor
::
get_transpose
()
{
int
n
[
this
->
ndims
];
...
...
This diff is collapsed.
Click to expand it.
src/field_descriptor.hpp
+
5
−
0
View file @
4bb6d851
...
...
@@ -54,6 +54,11 @@ class field_descriptor
fftwf_complex
*
input
,
fftwf_complex
*
output
=
NULL
);
int
interleave
(
float
*
input
,
float
*
output
,
int
dim
);
inline
int
rank
(
int
i0
)
{
return
i0
/
this
->
subsizes
[
0
];
...
...
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