Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
eigen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
What's new
5
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
John Khoo
eigen
Commits
4dda5b92
There was an error fetching the commit references. Please try again later.
Commit
4dda5b92
authored
5 months ago
by
Charles Schlosser
Committed by
Rasmus Munk Larsen
5 months ago
Browse files
Options
Downloads
Patches
Plain Diff
fix Warray-bounds in inner product
parent
66f7f51b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Eigen/src/Core/InnerProduct.h
+8
-4
8 additions, 4 deletions
Eigen/src/Core/InnerProduct.h
with
8 additions
and
4 deletions
Eigen/src/Core/InnerProduct.h
+
8
−
4
View file @
4dda5b92
...
...
@@ -57,16 +57,20 @@ struct inner_product_assert {
template
<
typename
Func
,
typename
Lhs
,
typename
Rhs
>
struct
inner_product_evaluator
{
static
constexpr
int
LhsFlags
=
evaluator
<
Lhs
>::
Flags
,
RhsFlags
=
evaluator
<
Rhs
>::
Flags
,
SizeAtCompileTime
=
min_size_prefer_fixed
(
Lhs
::
SizeAtCompileTime
,
Rhs
::
SizeAtCompileTime
),
LhsAlignment
=
evaluator
<
Lhs
>::
Alignment
,
RhsAlignment
=
evaluator
<
Rhs
>::
Alignment
;
static
constexpr
int
LhsFlags
=
evaluator
<
Lhs
>::
Flags
;
static
constexpr
int
RhsFlags
=
evaluator
<
Rhs
>::
Flags
;
static
constexpr
int
SizeAtCompileTime
=
size_prefer_fixed
(
Lhs
::
SizeAtCompileTime
,
Rhs
::
SizeAtCompileTime
);
static
constexpr
int
MaxSizeAtCompileTime
=
min_size_prefer_fixed
(
Lhs
::
MaxSizeAtCompileTime
,
Rhs
::
MaxSizeAtCompileTime
);
static
constexpr
int
LhsAlignment
=
evaluator
<
Lhs
>::
Alignment
;
static
constexpr
int
RhsAlignment
=
evaluator
<
Rhs
>::
Alignment
;
using
Scalar
=
typename
Func
::
result_type
;
using
Packet
=
typename
find_inner_product_packet
<
Scalar
,
SizeAtCompileTime
>::
type
;
static
constexpr
bool
Vectorize
=
bool
(
LhsFlags
&
RhsFlags
&
PacketAccessBit
)
&&
Func
::
PacketAccess
&&
((
SizeAtCompileTime
==
Dynamic
)
||
(
unpacket_traits
<
Packet
>::
size
<=
SizeAtCompileTime
));
((
Max
SizeAtCompileTime
==
Dynamic
)
||
(
unpacket_traits
<
Packet
>::
size
<=
Max
SizeAtCompileTime
));
EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE
explicit
inner_product_evaluator
(
const
Lhs
&
lhs
,
const
Rhs
&
rhs
,
Func
func
=
Func
())
...
...
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