Manifold 3.0
Robust geometry
 
Loading...
Searching...
No Matches
Apply

apply(f,...) applies the provided function in an elementwise fashion to its arguments, producing an object of the same dimensions. More...

Typedefs

template<class F , class... A>
using apply_t = typename detail::apply<F, void, A...>::type
 
template<class F , class... A>
using mm_apply_t
 
template<class F , class... A>
using no_mm_apply_t
 
template<class A >
using scalar_t
 

Functions

template<class F , class... A>
constexpr apply_t< F, A... > apply (F func, const A &...args)
 
template<class A , class F >
constexpr apply_t< F, A > map (const A &a, F func)
 
template<class A , class B , class F >
constexpr apply_t< F, A, B > zip (const A &a, const B &b, F func)
 

Detailed Description

apply(f,...) applies the provided function in an elementwise fashion to its arguments, producing an object of the same dimensions.

Typedef Documentation

◆ mm_apply_t

template<class F , class... A>
using mm_apply_t
Initial value:
typename std::enable_if<detail::apply<F, void, A...>::mm,
apply_t<F, A...>>::type

◆ no_mm_apply_t

template<class F , class... A>
using no_mm_apply_t
Initial value:
typename std::enable_if<!detail::apply<F, void, A...>::mm,
apply_t<F, A...>>::type

◆ scalar_t

template<class A >
using scalar_t
Initial value:
typename detail::scalar_type<A>::type