Speclib  0.1.2
The library for writing better CUDA libraries
sp::BroadcastingTensorSpecialiser Struct Reference

Set the BroadcastsLastDimension flag on BroadcastingTensor, if possible. More...

#include <BroadcastingTensor.hpp>

Inheritance diagram for sp::BroadcastingTensorSpecialiser:
[legend]

Static Public Member Functions

template<typename T >
static constexpr bool test ()
 
template<typename... O, typename T , int Rank, typename Opts , typename BOpts , typename... Stuff>
static auto run (const BroadcastingTensor< T, Rank, Opts, BOpts > &t, Stuff &&... stuff)
 
- Static Public Member Functions inherited from sp::Specialiser
template<typename T >
static constexpr bool test ()
 Return true iff the specialiser is able to specialise arguments of type T. More...
 
template<typename... O, typename ArgType , typename... Stuff>
static auto run (const ArgType &thisArg, Stuff &&... stuff)
 Specialise an argument. More...
 

Detailed Description

Set the BroadcastsLastDimension flag on BroadcastingTensor, if possible.

This specialisation isn't purely an optimisation, it is necessary for correctness in BroadcastingTensors that use it.