mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Replace Eigen type metaprogramming with corresponding std types and make use of alias templates
This commit is contained in:
committed by
Antonio Sánchez
parent
514f90c9ff
commit
421cbf0866
@@ -29,11 +29,9 @@ struct band_solve_triangular_selector<Index,Mode,LhsScalar,ConjLhs,RhsScalar,Row
|
||||
{
|
||||
const LhsMap lhs(_lhs,size,k+1,OuterStride<>(lhsStride));
|
||||
RhsMap other(_other,size,1);
|
||||
typename internal::conditional<
|
||||
ConjLhs,
|
||||
const CwiseUnaryOp<typename internal::scalar_conjugate_op<LhsScalar>,LhsMap>,
|
||||
const LhsMap&>
|
||||
::type cjLhs(lhs);
|
||||
std::conditional_t<ConjLhs,
|
||||
const CwiseUnaryOp<typename internal::scalar_conjugate_op<LhsScalar>,LhsMap>,
|
||||
const LhsMap&> cjLhs(lhs);
|
||||
|
||||
for(int col=0 ; col<other.cols() ; ++col)
|
||||
{
|
||||
@@ -65,11 +63,9 @@ struct band_solve_triangular_selector<Index,Mode,LhsScalar,ConjLhs,RhsScalar,Col
|
||||
{
|
||||
const LhsMap lhs(_lhs,k+1,size,OuterStride<>(lhsStride));
|
||||
RhsMap other(_other,size,1);
|
||||
typename internal::conditional<
|
||||
ConjLhs,
|
||||
const CwiseUnaryOp<typename internal::scalar_conjugate_op<LhsScalar>,LhsMap>,
|
||||
const LhsMap&>
|
||||
::type cjLhs(lhs);
|
||||
std::conditional_t<ConjLhs,
|
||||
const CwiseUnaryOp<typename internal::scalar_conjugate_op<LhsScalar>,LhsMap>,
|
||||
const LhsMap&> cjLhs(lhs);
|
||||
|
||||
for(int col=0 ; col<other.cols() ; ++col)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user