Fix copy-and-paste typo in SolveWithGuess assignment

This fixes compilation of code snippets in BiCGSTAB docs.
This commit is contained in:
Jitse Niesen 2014-09-21 14:19:23 +01:00
parent 80de35b6c5
commit 5fa69422a2

View File

@ -93,12 +93,12 @@ protected:
PlainObject m_result;
};
// Specialization for "dst = dec.solve(rhs)"
// Specialization for "dst = dec.solveWithGuess(rhs)"
// NOTE we need to specialize it for Dense2Dense to avoid ambiguous specialization error and a Sparse2Sparse specialization must exist somewhere
template<typename DstXprType, typename DecType, typename RhsType, typename GuessType, typename Scalar>
struct Assignment<DstXprType, SolveWithGuess<DecType,RhsType,GuessType>, internal::assign_op<Scalar>, Dense2Dense, Scalar>
{
typedef Solve<DecType,RhsType> SrcXprType;
typedef SolveWithGuess<DecType,RhsType,GuessType> SrcXprType;
static void run(DstXprType &dst, const SrcXprType &src, const internal::assign_op<Scalar> &)
{
// FIXME shall we resize dst here?