mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-23 01:59:38 +08:00
Fix static analyzer warning in SelfadjointProduct.h.
Fix compiler warnings in GeneralBlockPanelKernel.h.
This commit is contained in:
parent
1fcaaf460f
commit
c4059ffcb6
@ -2680,14 +2680,14 @@ struct gemm_pack_rhs<Scalar, Index, DataMapper, nr, RowMajor, Conjugate, PanelMo
|
|||||||
enum { PacketSize = packet_traits<Scalar>::size,
|
enum { PacketSize = packet_traits<Scalar>::size,
|
||||||
HalfPacketSize = unpacket_traits<HalfPacket>::size,
|
HalfPacketSize = unpacket_traits<HalfPacket>::size,
|
||||||
QuarterPacketSize = unpacket_traits<QuarterPacket>::size};
|
QuarterPacketSize = unpacket_traits<QuarterPacket>::size};
|
||||||
bool HasHalf = (int)HalfPacketSize < (int)PacketSize;
|
|
||||||
bool HasQuarter = (int)QuarterPacketSize < (int)HalfPacketSize;
|
|
||||||
EIGEN_DONT_INLINE void operator()(Scalar* blockB, const DataMapper& rhs, Index depth, Index cols, Index stride=0, Index offset=0)
|
EIGEN_DONT_INLINE void operator()(Scalar* blockB, const DataMapper& rhs, Index depth, Index cols, Index stride=0, Index offset=0)
|
||||||
{
|
{
|
||||||
EIGEN_ASM_COMMENT("EIGEN PRODUCT PACK RHS ROWMAJOR");
|
EIGEN_ASM_COMMENT("EIGEN PRODUCT PACK RHS ROWMAJOR");
|
||||||
EIGEN_UNUSED_VARIABLE(stride);
|
EIGEN_UNUSED_VARIABLE(stride);
|
||||||
EIGEN_UNUSED_VARIABLE(offset);
|
EIGEN_UNUSED_VARIABLE(offset);
|
||||||
eigen_assert(((!PanelMode) && stride==0 && offset==0) || (PanelMode && stride>=depth && offset<=stride));
|
eigen_assert(((!PanelMode) && stride==0 && offset==0) || (PanelMode && stride>=depth && offset<=stride));
|
||||||
|
const bool HasHalf = (int)HalfPacketSize < (int)PacketSize;
|
||||||
|
const bool HasQuarter = (int)QuarterPacketSize < (int)HalfPacketSize;
|
||||||
conj_if<NumTraits<Scalar>::IsComplex && Conjugate> cj;
|
conj_if<NumTraits<Scalar>::IsComplex && Conjugate> cj;
|
||||||
Index packet_cols8 = nr>=8 ? (cols/8) * 8 : 0;
|
Index packet_cols8 = nr>=8 ? (cols/8) * 8 : 0;
|
||||||
Index packet_cols4 = nr>=4 ? (cols/4) * 4 : 0;
|
Index packet_cols4 = nr>=4 ? (cols/4) * 4 : 0;
|
||||||
|
@ -111,7 +111,7 @@ struct selfadjoint_product_selector<MatrixType,OtherType,UpLo,false>
|
|||||||
Scalar, OtherIsRowMajor ? ColMajor : RowMajor, (!OtherBlasTraits::NeedToConjugate) && NumTraits<Scalar>::IsComplex,
|
Scalar, OtherIsRowMajor ? ColMajor : RowMajor, (!OtherBlasTraits::NeedToConjugate) && NumTraits<Scalar>::IsComplex,
|
||||||
IsRowMajor ? RowMajor : ColMajor, MatrixType::InnerStrideAtCompileTime, UpLo>
|
IsRowMajor ? RowMajor : ColMajor, MatrixType::InnerStrideAtCompileTime, UpLo>
|
||||||
::run(size, depth,
|
::run(size, depth,
|
||||||
&actualOther.coeffRef(0,0), actualOther.outerStride(), &actualOther.coeffRef(0,0), actualOther.outerStride(),
|
actualOther.data(), actualOther.outerStride(), actualOther.data(), actualOther.outerStride(),
|
||||||
mat.data(), mat.innerStride(), mat.outerStride(), actualAlpha, blocking);
|
mat.data(), mat.innerStride(), mat.outerStride(), actualAlpha, blocking);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user