mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-13 20:26:03 +08:00
Using Index instead of hard coded int type to prevent potential implicit integer conversion
This commit is contained in:
parent
8a502233d8
commit
2c4cace56c
@ -261,7 +261,7 @@ template<> struct gemv_dense_sense_selector<OnTheRight,ColMajor,true>
|
|||||||
if(!evalToDest)
|
if(!evalToDest)
|
||||||
{
|
{
|
||||||
#ifdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN
|
#ifdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN
|
||||||
int size = dest.size();
|
Index size = dest.size();
|
||||||
EIGEN_DENSE_STORAGE_CTOR_PLUGIN
|
EIGEN_DENSE_STORAGE_CTOR_PLUGIN
|
||||||
#endif
|
#endif
|
||||||
if(!alphaIsCompatible)
|
if(!alphaIsCompatible)
|
||||||
@ -327,7 +327,7 @@ template<> struct gemv_dense_sense_selector<OnTheRight,RowMajor,true>
|
|||||||
if(!DirectlyUseRhs)
|
if(!DirectlyUseRhs)
|
||||||
{
|
{
|
||||||
#ifdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN
|
#ifdef EIGEN_DENSE_STORAGE_CTOR_PLUGIN
|
||||||
int size = actualRhs.size();
|
Index size = actualRhs.size();
|
||||||
EIGEN_DENSE_STORAGE_CTOR_PLUGIN
|
EIGEN_DENSE_STORAGE_CTOR_PLUGIN
|
||||||
#endif
|
#endif
|
||||||
Map<typename ActualRhsTypeCleaned::PlainObject>(actualRhsPtr, actualRhs.size()) = actualRhs;
|
Map<typename ActualRhsTypeCleaned::PlainObject>(actualRhsPtr, actualRhs.size()) = actualRhs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user