43 #ifndef RTOPPACK_UNARY_FUNC_PTR_DECL_HPP
44 #define RTOPPACK_UNARY_FUNC_PTR_DECL_HPP
46 #include "RTOpPack_RTOpT.hpp"
57 template<
class Scalar>
119 std::string op_name_;
130 #endif // RTOPPACK_UNARY_FUNC_PTR_DECL_HPP
RTOpT subclass for unary transformation functions using a function pointer.
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