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
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
faust group
faust
Commits
39017bf2
Commit
39017bf2
authored
3 years ago
by
hhakim
Browse files
Options
Downloads
Patches
Plain Diff
Add Slice assignment operator.
parent
8de9a16f
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/faust_linear_operator/CPU/faust_Slice.cpp
+6
-0
6 additions, 0 deletions
src/faust_linear_operator/CPU/faust_Slice.cpp
src/faust_linear_operator/CPU/faust_Slice.h
+1
-0
1 addition, 0 deletions
src/faust_linear_operator/CPU/faust_Slice.h
with
7 additions
and
0 deletions
src/faust_linear_operator/CPU/faust_Slice.cpp
+
6
−
0
View file @
39017bf2
...
@@ -63,4 +63,10 @@ namespace Faust {
...
@@ -63,4 +63,10 @@ namespace Faust {
{
{
return
end_id
-
start_id
;
return
end_id
-
start_id
;
}
}
Slice
&
Slice
::
operator
=
(
const
Slice
&
s
)
{
copy
(
s
);
return
*
this
;
}
}
}
This diff is collapsed.
Click to expand it.
src/faust_linear_operator/CPU/faust_Slice.h
+
1
−
0
View file @
39017bf2
...
@@ -19,6 +19,7 @@ namespace Faust
...
@@ -19,6 +19,7 @@ namespace Faust
bool
belong_to
(
faust_unsigned_int
min_i
,
faust_unsigned_int
max_i
);
bool
belong_to
(
faust_unsigned_int
min_i
,
faust_unsigned_int
max_i
);
bool
belong_to
(
Slice
&
s
);
bool
belong_to
(
Slice
&
s
);
void
copy
(
const
Slice
&
s
);
void
copy
(
const
Slice
&
s
);
Slice
&
operator
=
(
const
Slice
&
);
void
display
();
void
display
();
static
void
swap
(
Slice
&
s1
,
Slice
&
s2
);
static
void
swap
(
Slice
&
s1
,
Slice
&
s2
);
...
...
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