template<typename Index, int StorageOrder, int UpLo, bool ConjugateLhs, bool ConjugateRhs> \
struct selfadjoint_matrix_vector_product_symv<EIGTYPE,Index,StorageOrder,UpLo,ConjugateLhs,ConjugateRhs> \
{ \
typedef Matrix<EIGTYPE,Dynamic,1,ColMajor> SYMVVector;\
\
const EIGTYPE* _rhs, EIGTYPE*
res, EIGTYPE
alpha) \
{ \
enum {\
IsRowMajor = StorageOrder==
RowMajor ? 1 : 0, \
IsLower = UpLo ==
Lower ? 1 : 0 \
}; \
BlasIndex
n=convert_index<BlasIndex>(
size),
lda=convert_index<BlasIndex>(lhsStride),
incx=1,
incy=1; \
const EIGTYPE *x_ptr; \
char uplo=(IsRowMajor) ? (IsLower ? 'U' : 'L') : (IsLower ? 'L' : 'U'); \
SYMVVector x_tmp; \
if (ConjugateRhs) { \
Map<const SYMVVector, 0 > map_x(_rhs,
size,1); \
x_tmp=map_x.conjugate(); \
x_ptr=x_tmp.data(); \
} else x_ptr=_rhs; \
}\
};