Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
faust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
faust group
faust
Commits
435a5792
Commit
435a5792
authored
2 years ago
by
hhakim
Browse files
Options
Downloads
Patches
Plain Diff
Add copy and assignment operator overload to Faust::TransformHelperButterfly<FPP, GPU2>.
parent
3d7c6398
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
src/faust_linear_operator/GPU2/faust_TransformHelperButterfly_gpu.h
+22
-5
22 additions, 5 deletions
...linear_operator/GPU2/faust_TransformHelperButterfly_gpu.h
with
22 additions
and
5 deletions
src/faust_linear_operator/GPU2/faust_TransformHelperButterfly_gpu.h
+
22
−
5
View file @
435a5792
...
...
@@ -23,8 +23,8 @@ namespace Faust
// private ctor
TransformHelperButterfly
(
const
std
::
vector
<
MatGeneric
<
FPP
,
Cpu
>
*>&
facts
,
const
FPP
lambda_
=
(
FPP
)
1.0
,
const
bool
optimizedCopy
=
false
,
const
bool
cloning_fact
=
true
,
const
bool
internal_call
=
false
);
~
TransformHelperButterfly
()
{
delete
[]
perm_ids
;}
public:
~
TransformHelperButterfly
()
{
if
(
perm_ids
!=
nullptr
)
delete
[]
perm_ids
;}
static
TransformHelper
<
FPP
,
GPU2
>*
fourierFaust
(
unsigned
int
n
,
const
bool
norma
=
true
);
static
TransformHelper
<
FPP
,
GPU2
>*
optFaust
(
const
TransformHelper
<
FPP
,
GPU2
>*
F
)
{
throw
std
::
runtime_error
(
"Not yet implemented on GPU"
);};
Vect
<
FPP
,
Cpu
>
multiply
(
const
Vect
<
FPP
,
Cpu
>&
x
);
...
...
@@ -43,15 +43,32 @@ namespace Faust
Vect
<
FPP
,
GPU2
>
d1
;
Vect
<
FPP
,
GPU2
>
d2
;
int
*
subdiag_ids
;
#ifdef USE_PYTHONIC
long
*
subdiag_ids_ptr
;
#endif
int
level
;
// \param level: is a 0-base index.
public:
ButterflyMat
(
const
MatSparse
<
FPP
,
Cpu
>
&
factor
,
int
level
);
//TODO: move defs in hpp
ButterflyMat
(
const
ButterflyMat
<
FPP
,
GPU2
>&
bmat
)
{
*
this
=
bmat
;
}
ButterflyMat
&
operator
=
(
const
ButterflyMat
<
FPP
,
GPU2
>&
bmat
)
{
this
->
d1
=
bmat
.
d1
;
this
->
d2
=
bmat
.
d2
;
this
->
level
=
bmat
.
level
;
this
->
subdiag_ids
=
new
int
[
d1
.
size
()];
std
::
copy
(
bmat
.
subdiag_ids
,
bmat
.
subdiag_ids
+
d1
.
size
(),
this
->
subdiag_ids
);
return
*
this
;
}
ButterflyMat
()
:
level
(
-
1
),
subdiag_ids
(
nullptr
),
d1
(),
d2
()
{
}
//TODO: constness of multiply member functions
MatDense
<
FPP
,
GPU2
>
multiply
(
const
FPP
*
x
);
void
Display
()
const
;
...
...
@@ -63,7 +80,7 @@ namespace Faust
const
Vect
<
FPP
,
GPU2
>&
getD1
()
{
return
d1
;};
const
Vect
<
FPP
,
GPU2
>&
getD2
()
{
return
d2
;};
~
ButterflyMat
()
{
delete
[]
subdiag_ids
;}
~
ButterflyMat
()
{
if
(
subdiag_ids
!=
nullptr
)
delete
[]
subdiag_ids
;}
};
}
#include
"faust_TransformHelperButterfly_gpu.hpp"
//TODO
...
...
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