7 #ifndef LIN_GENERATORS_DIAGONAL_HPP_ 8 #define LIN_GENERATORS_DIAGONAL_HPP_ 11 #include "../core.hpp" 14 #include <type_traits> 28 template <class D, typename std::enable_if_t<internal::is_vector<D>::value,
size_t> = 0>
29 constexpr
auto diag(internal::Stream<D>
const &stream) {
30 return internal::StreamDiagonal<D>(stream);
Definition: config.hpp:27
constexpr auto diag(internal::Mapping< D > &mapping)
Creates a diagonal mapping reference from the given mapping.
Definition: references.hpp:359