mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
fix packing criterion
This commit is contained in:
parent
f46ace61d3
commit
f4a7679904
@ -483,10 +483,9 @@ template<> struct gemv_selector<OnTheRight,RowMajor,true>
|
|||||||
* RhsBlasTraits::extractScalarFactor(prod.rhs());
|
* RhsBlasTraits::extractScalarFactor(prod.rhs());
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
// FIXME I think here we really have to check for packet_traits<Scalar>::size==1
|
// FIXME find a way to allow an inner stride on the result if packet_traits<Scalar>::size==1
|
||||||
// because in this case it is fine to have an inner stride
|
// on, the other hand it is good for the cache to pack the vector anyways...
|
||||||
DirectlyUseRhs = ((packet_traits<RhsScalar>::size==1) || (_ActualRhsType::Flags&ActualPacketAccessBit))
|
DirectlyUseRhs = _ActualRhsType::InnerStrideAtCompileTime==1
|
||||||
&& (!(_ActualRhsType::Flags & RowMajorBit))
|
|
||||||
};
|
};
|
||||||
|
|
||||||
gemv_static_vector_if<RhsScalar,_ActualRhsType::SizeAtCompileTime,_ActualRhsType::MaxSizeAtCompileTime,!DirectlyUseRhs> static_rhs;
|
gemv_static_vector_if<RhsScalar,_ActualRhsType::SizeAtCompileTime,_ActualRhsType::MaxSizeAtCompileTime,!DirectlyUseRhs> static_rhs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user