11 #ifndef RTOPPACK_UNARY_FUNC_PTR_DECL_HPP
12 #define RTOPPACK_UNARY_FUNC_PTR_DECL_HPP
14 #include "RTOpPack_RTOpT.hpp"
25 template<
class Scalar>
98 #endif // RTOPPACK_UNARY_FUNC_PTR_DECL_HPP
RTOpT subclass for unary transformation functions using a function pointer.
Class for a changeable sub-vector.
TOpUnaryFuncPtr & operator=(const TOpUnaryFuncPtr &)
Class for a non-changeable sub-vector.
Templated interface to vector reduction/transformation operators {abstract}.
unary_func_ptr_t unary_func_ptr_
Abstract base class for all reduction objects.
void set_initialized(unary_func_ptr_t *unary_func_ptr=NULL, std::string *op_name=NULL)
Set uninitialized.
void(* unary_func_ptr_t)(const Scalar x[], int x_dim, Scalar out[])
TOpUnaryFuncPtr()
Construct to uninitialized.
void initialize(unary_func_ptr_t unary_func_ptr, const std::string &op_name)
Initialize.
void apply_op(const int num_vecs, const ConstSubVectorView< Scalar > sub_vecs[], const int num_targ_vecs, const SubVectorView< Scalar > targ_sub_vecs[], ReductTarget *reduct_obj) const
const char * op_name() const