mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-29 15:24:51 +08:00
workaround MSVC 2013 compilation issue (ambiguous call)
This commit is contained in:
parent
11123175db
commit
a57e6e5f0f
@ -311,7 +311,7 @@ inline void sparse_selfadjoint_time_dense_product(const SparseLhsType& lhs, cons
|
|||||||
while (i && i.index()<j) ++i;
|
while (i && i.index()<j) ++i;
|
||||||
if(i && i.index()==j)
|
if(i && i.index()==j)
|
||||||
{
|
{
|
||||||
res(j,k) += alpha * i.value() * rhs(j,k);
|
res.coeffRef(j,k) += alpha * i.value() * rhs.coeff(j,k);
|
||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -324,14 +324,14 @@ inline void sparse_selfadjoint_time_dense_product(const SparseLhsType& lhs, cons
|
|||||||
{
|
{
|
||||||
LhsScalar lhs_ij = i.value();
|
LhsScalar lhs_ij = i.value();
|
||||||
if(!LhsIsRowMajor) lhs_ij = numext::conj(lhs_ij);
|
if(!LhsIsRowMajor) lhs_ij = numext::conj(lhs_ij);
|
||||||
res_j += lhs_ij * rhs(i.index(),k);
|
res_j += lhs_ij * rhs.coeff(i.index(),k);
|
||||||
res(i.index(),k) += numext::conj(lhs_ij) * rhs_j;
|
res(i.index(),k) += numext::conj(lhs_ij) * rhs_j;
|
||||||
}
|
}
|
||||||
res(j,k) += alpha * res_j;
|
res.coeffRef(j,k) += alpha * res_j;
|
||||||
|
|
||||||
// handle diagonal coeff
|
// handle diagonal coeff
|
||||||
if (ProcessFirstHalf && i && (i.index()==j))
|
if (ProcessFirstHalf && i && (i.index()==j))
|
||||||
res(j,k) += alpha * i.value() * rhs(j,k);
|
res.coeffRef(j,k) += alpha * i.value() * rhs.coeff(j,k);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user