10 #ifndef EIGEN_PACKED_TRIANGULAR_SOLVER_VECTOR_H 11 #define EIGEN_PACKED_TRIANGULAR_SOLVER_VECTOR_H 15 template<
typename LhsScalar,
typename RhsScalar,
typename Index,
int S
ide,
int Mode,
bool Conjugate,
int StorageOrder>
19 template<
typename LhsScalar,
typename RhsScalar,
typename Index,
int Mode,
bool Conjugate>
27 internal::conj_if<Conjugate> cj;
28 typedef Map<const Matrix<LhsScalar,Dynamic,1> > LhsMap;
31 lhs += IsLower ? 0 : (size*(size+1)>>1)-1;
34 Index i = IsLower ? pi : size-pi-1;
37 rhs[
i] -= (ConjLhsType(LhsMap(lhs+s,pi))
38 .cwiseProduct(Map<
const Matrix<RhsScalar,Dynamic,1> >(rhs+(IsLower ? 0 : i+1),pi))).
sum();
40 rhs[i] /= cj(lhs[IsLower ? i : 0]);
41 IsLower ? lhs += pi+1 : lhs -= pi+2;
47 template<
typename LhsScalar,
typename RhsScalar,
typename Index,
int Mode,
bool Conjugate>
55 internal::conj_if<Conjugate> cj;
56 typedef Map<const Matrix<LhsScalar,Dynamic,1> > LhsMap;
59 lhs += IsLower ? 0 : size*(size-1)>>1;
62 Index i = IsLower ? pi : size-pi-1;
63 Index r = size - pi - 1;
65 rhs[i] /= cj(lhs[IsLower ? 0 : i]);
67 Map<Matrix<RhsScalar,Dynamic,1> >(rhs+(IsLower? i+1 : 0),r) -=
68 rhs[
i] * ConjLhsType(LhsMap(lhs+(IsLower? 1 : 0),r));
69 IsLower ? lhs += size-pi : lhs -= r;
74 template<
typename LhsScalar,
typename RhsScalar,
typename Index,
int Mode,
bool Conjugate,
int StorageOrder>
82 >::
run(size, lhs, rhs);
88 #endif // EIGEN_PACKED_TRIANGULAR_SOLVER_VECTOR_H static void run(Index size, const LhsScalar *lhs, RhsScalar *rhs)
static void run(Index size, const LhsScalar *lhs, RhsScalar *rhs)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
const mpreal sum(const mpreal tab[], const unsigned long int n, int &status, mp_rnd_t mode=mpreal::get_default_rnd())
static void run(Index size, const LhsScalar *lhs, RhsScalar *rhs)
void run(Expr &expr, Dev &dev)