template <typename Op>
LinearOperator<Range, Domain> &operator=(const Op &op)
{
- return *this = linear_operator<Range, Domain, Op>(op);
+ *this = linear_operator<Range, Domain, Op>(op);
+ return *this;
}
/**
LinearOperator<Range, Domain> &
operator+=(const LinearOperator<Range, Domain> &second_op)
{
- return *this = *this + second_op;
+ *this = *this + second_op;
+ return *this;
}
/**
LinearOperator<Range, Domain> &
operator-=(const LinearOperator<Range, Domain> &second_op)
{
- return *this = *this - second_op;
+ *this = *this - second_op;
+ return *this;
}
/**
LinearOperator<Range, Domain> &
operator*=(const LinearOperator<Domain, Domain> &second_op)
{
- return *this = *this * second_op;
+ *this = *this * second_op;
+ return *this;
}
/**
LinearOperator<Range, Domain>
operator*=(typename Domain::value_type number)
{
- return *this = *this * number;
+ *this = *this * number;
+ return *this;
}
//@}
*/
PackagedOperation<Range> &operator+=(const PackagedOperation<Range> &second_comp)
{
- return *this = *this + second_comp;
+ *this = *this + second_comp;
+ return *this;
}
/**
*/
PackagedOperation<Range> &operator-=(const PackagedOperation<Range> &second_comp)
{
- return *this = *this - second_comp;
+ *this = *this - second_comp;
+ return *this;
}
/**
*/
PackagedOperation<Range> &operator+=(const Range &offset)
{
- return *this = *this + PackagedOperation<Range>(offset);
+ *this = *this + PackagedOperation<Range>(offset);
+ return *this;
}
/**
*/
PackagedOperation<Range> &operator-=(const Range &offset)
{
- return *this = *this - PackagedOperation<Range>(offset);
+ *this = *this - PackagedOperation<Range>(offset);
+ return *this;
}
/**
*/
PackagedOperation<Range> &operator*=(typename Range::value_type number)
{
- return *this = *this * number;
+ *this = *this * number;
+ return *this;
}
//@}