VisionCpp
0.0.1
|
The definition is in RUnOP file. More...
#include <resizable_unary.hpp>
Public Types | |
using | OutType = typename UN_OP::OutType |
using | OPType = UN_OP |
using | RHSExpr = RHS |
using | Type = typename OutputMemory< OutType, LfType, Cols, Rows, LVL >::Type |
template<typename TmpRHS > | |
using | ExprExchange = RUnOP< UN_OP, TmpRHS, Cols, Rows, LfType, LVL > |
Public Member Functions | |
RUnOP (RHS rhsArg) | |
void | reset (bool reset) |
template<bool ForcedToExec, size_t LC, size_t LR, size_t LCT, size_t LRT, typename DeviceT > | |
auto | sub_expression_evaluation (const DeviceT &dev) -> decltype(execute_expr< Unary_Conds, ForcedToExec, ExprExchange< RHS >, LC, LR, LCT, LRT >(rhs.template sub_expression_evaluation< Unary_Conds, LC, LR, LCT, LRT >(dev), dev)) |
sub_expression_evaluation More... | |
Public Attributes | |
RHS | rhs |
bool | subexpr_execution_reseter |
Static Public Attributes | |
static constexpr bool | has_out = false |
static constexpr size_t | Level = LVL |
static constexpr size_t | RThread = Rows |
static constexpr size_t | CThread = Cols |
static constexpr size_t | ND_Category = internal::expr_category::Unary |
static constexpr size_t | LeafType = Type::LeafType |
static constexpr bool | Unary_Conds |
static constexpr bool | SubExpressionEvaluationNeeded |
static constexpr size_t | Operation_type = RHS::Operation_type |
The definition is in RUnOP file.
RUnOP is used to apply a unary operation on the right hand side(RHS) operand.
template parameters:
RHS | is the right hand side expression |
Cols | determines the column size of the output |
Rows | determines the row size of the output |
LfType | determines the type of the leafNode {Buffer2D, Buffer1D, Host, Image} |
LVL | the level of the node in the expression tree |
Definition at line 41 of file resizable_unary.hpp.
using visioncpp::internal::RUnOP< UN_OP, RHS, Cols, Rows, LfType, LVL >::ExprExchange = RUnOP<UN_OP, TmpRHS, Cols, Rows, LfType, LVL> |
Definition at line 61 of file resizable_unary.hpp.
using visioncpp::internal::RUnOP< UN_OP, RHS, Cols, Rows, LfType, LVL >::OPType = UN_OP |
Definition at line 45 of file resizable_unary.hpp.
using visioncpp::internal::RUnOP< UN_OP, RHS, Cols, Rows, LfType, LVL >::OutType = typename UN_OP::OutType |
Definition at line 44 of file resizable_unary.hpp.
using visioncpp::internal::RUnOP< UN_OP, RHS, Cols, Rows, LfType, LVL >::RHSExpr = RHS |
Definition at line 46 of file resizable_unary.hpp.
using visioncpp::internal::RUnOP< UN_OP, RHS, Cols, Rows, LfType, LVL >::Type = typename OutputMemory<OutType, LfType, Cols, Rows, LVL>::Type |
Definition at line 47 of file resizable_unary.hpp.
|
inline |
Definition at line 65 of file resizable_unary.hpp.
|
inline |
Definition at line 67 of file resizable_unary.hpp.
References visioncpp::internal::RUnOP< UN_OP, RHS, Cols, Rows, LfType, LVL >::rhs, and visioncpp::internal::RUnOP< UN_OP, RHS, Cols, Rows, LfType, LVL >::subexpr_execution_reseter.
|
inline |
sub_expression_evaluation
This function is used to break the expression tree whenever necessary. The decision for breaking the tree will be determined based on the static parameter called SubExpressionEvaluationNeeded. When this is set to true, the sub_expression_evaluation is called recursively from the root of the tree. Each node based on their parent decision will decide to launch a kernel for itself. Also, they decide for each of their children whether or not to launch a kernel separately. template parameters:
ForcedToExec | : a boolean value representing the decision made by the parent of this node for launching a kernel. |
LC | is the column size of the local memory required by Filter2D and DownSmplOP |
LR | is the row size of the local memory required by Filter2D and DownSmplOP |
LCT | is the column size of workgroup |
LRT | is the row size of workgroup |
DeviceT | type representing the device function parameters: |
dev | : the selected device for executing the expression |
Definition at line 95 of file resizable_unary.hpp.
References visioncpp::internal::RUnOP< UN_OP, RHS, Cols, Rows, LfType, LVL >::rhs.
|
staticconstexpr |
Definition at line 50 of file resizable_unary.hpp.
|
staticconstexpr |
Definition at line 43 of file resizable_unary.hpp.
|
staticconstexpr |
Definition at line 52 of file resizable_unary.hpp.
|
staticconstexpr |
Definition at line 48 of file resizable_unary.hpp.
|
staticconstexpr |
Definition at line 51 of file resizable_unary.hpp.
|
staticconstexpr |
Definition at line 58 of file resizable_unary.hpp.
RHS visioncpp::internal::RUnOP< UN_OP, RHS, Cols, Rows, LfType, LVL >::rhs |
Definition at line 63 of file resizable_unary.hpp.
Referenced by visioncpp::internal::RUnOP< UN_OP, RHS, Cols, Rows, LfType, LVL >::reset(), and visioncpp::internal::RUnOP< UN_OP, RHS, Cols, Rows, LfType, LVL >::sub_expression_evaluation().
|
staticconstexpr |
Definition at line 49 of file resizable_unary.hpp.
bool visioncpp::internal::RUnOP< UN_OP, RHS, Cols, Rows, LfType, LVL >::subexpr_execution_reseter |
Definition at line 64 of file resizable_unary.hpp.
Referenced by visioncpp::internal::RUnOP< UN_OP, RHS, Cols, Rows, LfType, LVL >::reset().
|
staticconstexpr |
Definition at line 56 of file resizable_unary.hpp.
|
staticconstexpr |
Definition at line 53 of file resizable_unary.hpp.