Template Function ripple::operator-¶
Defined in File array.hpp
Function Documentation¶
-
template<typename
T
, typenameImpl
, typenameR
= array_impl_t<Impl, Impl>, array_value_enable_t<T, Impl> = 0>
constexpr autoripple
::
operator-
(T val, const Array<Impl> &a) noexcept -> R¶ Overload of operator- to subtract each element of the array from the scalar value, returning a new array.
- Return
A new array with either this implementation type, or the fallback type.
- Parameters
val
: The value to subtract from.a
: The array to subtract with.
- Template Parameters
T
: The type of the scalar.Impl
: The implementation type of the array.