.. index:: pair: class; gpr::linalg::linop::CallbackOperator .. _doxid-classgpr_1_1linalg_1_1linop_1_1_callback_operator: class gpr::linalg::linop::CallbackOperator ========================================== .. toctree:: :hidden: Overview ~~~~~~~~ An operator given by its pieces, for structured actions owned elsewhere (the derivative Gram applies kernel contractions without the tensor). :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class CallbackOperator: public :ref:`gpr::linalg::linop::SymmetricOperator` { public: // typedefs typedef std::function :target:`Apply`; typedef std::function :target:`Column`; // construction :target:`CallbackOperator`(Eigen::Index order, :ref:`Apply` apply, Eigen::VectorXd diagonal, :ref:`Column` column, double flops_per_column); // methods virtual Eigen::Index :target:`order`() const; virtual void :ref:`apply`(const Eigen::MatrixXd& X, Eigen::MatrixXd& Y) const; virtual Eigen::VectorXd :target:`diagonal`() const; virtual Eigen::VectorXd :target:`column`(Eigen::Index j) const; virtual double :ref:`applyFlops`(Eigen::Index rhs) const; }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // methods virtual Eigen::Index :ref:`order`() const = 0; virtual void :ref:`apply`(const Eigen::MatrixXd& X, Eigen::MatrixXd& Y) const = 0; virtual Eigen::VectorXd :ref:`diagonal`() const = 0; virtual Eigen::VectorXd :ref:`column`(Eigen::Index j) const = 0; virtual double :ref:`applyFlops`(Eigen::Index rhs) const = 0; Eigen::MatrixXd :ref:`apply`(const Eigen::MatrixXd& X) const; .. _details-classgpr_1_1linalg_1_1linop_1_1_callback_operator: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ An operator given by its pieces, for structured actions owned elsewhere (the derivative Gram applies kernel contractions without the tensor). Methods ------- .. index:: pair: function; apply .. _doxid-classgpr_1_1linalg_1_1linop_1_1_callback_operator_1aaf1668dcc8bba8130c746f3fff96a3fa: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual void apply(const Eigen::MatrixXd& X, Eigen::MatrixXd& Y) const Y = A X, X with :ref:`order() ` rows and any number of columns. .. index:: pair: function; applyFlops .. _doxid-classgpr_1_1linalg_1_1linop_1_1_callback_operator_1a60b0290b5f811e21fa7b293d85aefffb: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual double applyFlops(Eigen::Index rhs) const Floating-point operations of one apply to ``rhs`` columns.