mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
bug #100: add support for explicit scalar to Array conversion (as enable implicit conversion is much more tricky)
This commit is contained in:
@@ -122,6 +122,12 @@ template<typename Derived> class ArrayBase
|
||||
{
|
||||
internal::call_assignment(derived(), other.derived());
|
||||
}
|
||||
|
||||
/** Set all the entries to \a value.
|
||||
* \sa DenseBase::setConstant(), DenseBase::fill() */
|
||||
EIGEN_DEVICE_FUNC
|
||||
Derived& operator=(const Scalar &value)
|
||||
{ Base::setConstant(value); return derived(); }
|
||||
|
||||
EIGEN_DEVICE_FUNC
|
||||
Derived& operator+=(const Scalar& scalar);
|
||||
|
||||
Reference in New Issue
Block a user