Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
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
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
Core Modules
dune-common
Commits
49b706a2
Commit
49b706a2
authored
7 years ago
by
Jö Fahlke
Browse files
Options
Downloads
Patches
Plain Diff
[Vc] Move the specialization of IsNumber to new vc header.
parent
2c33775e
No related branches found
No related tags found
1 merge request
!193
Extended SIMD interface
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/common/simd.hh
+0
-16
0 additions, 16 deletions
dune/common/simd.hh
dune/common/simd/vc.hh
+15
-0
15 additions, 0 deletions
dune/common/simd/vc.hh
with
15 additions
and
16 deletions
dune/common/simd.hh
+
0
−
16
View file @
49b706a2
...
...
@@ -492,22 +492,6 @@ namespace Dune
}
#endif // HAVE_VC
#if HAVE_VC
/*
* Specialize IsNumber for Vc::SimdArray and Vc::Vector to be able to use
* it as a scalar in DenseMatrix etc.
*/
template
<
typename
T
,
std
::
size_t
N
>
struct
IsNumber
<
Vc
::
SimdArray
<
T
,
N
>>
:
public
std
::
integral_constant
<
bool
,
IsNumber
<
T
>::
value
>
{
};
template
<
typename
T
,
typename
Abi
>
struct
IsNumber
<
Vc
::
Vector
<
T
,
Abi
>>
:
public
std
::
integral_constant
<
bool
,
IsNumber
<
T
>::
value
>
{
};
#endif // HAVE_VC
}
// end namespace Dune
#endif // DUNE_COMMON_SIMD_HH
This diff is collapsed.
Click to expand it.
dune/common/simd/vc.hh
+
15
−
0
View file @
49b706a2
...
...
@@ -504,6 +504,21 @@ namespace Dune {
}
// namespace Overloads
}
// namespace Simd
/*
* Specialize IsNumber for Vc::SimdArray and Vc::Vector to be able to use
* it as a scalar in DenseMatrix etc.
*/
template
<
typename
T
,
std
::
size_t
N
>
struct
IsNumber
<
Vc
::
SimdArray
<
T
,
N
>>
:
public
std
::
integral_constant
<
bool
,
IsNumber
<
T
>::
value
>
{
};
template
<
typename
T
,
typename
Abi
>
struct
IsNumber
<
Vc
::
Vector
<
T
,
Abi
>>
:
public
std
::
integral_constant
<
bool
,
IsNumber
<
T
>::
value
>
{
};
}
// namespace Dune
#endif // DUNE_COMMON_SIMD_VC_HH
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