.. index:: pair: struct; QPanda::Variational::impl_stack .. _doxid-struct_q_panda_1_1_variational_1_1impl__stack: struct QPanda::Variational::impl_stack ====================================== .. toctree:: :hidden: Overview ~~~~~~~~ Implementation class for the stack operation. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct impl_stack: public :ref:`QPanda::Variational::impl` { // fields int :ref:`m_axis`; // construction :ref:`impl_stack`(int axis, const std::vector<:ref:`var`>&); }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // fields MatrixXd :ref:`val`; bool :ref:`m_is_differentiable`; :ref:`op_type` :ref:`op`; std::vector<:ref:`var`> :ref:`children`; std::vector`>> :ref:`parents`; MatrixXd :ref:`m_prob`; .. _details-struct_q_panda_1_1_variational_1_1impl__stack: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Implementation class for the stack operation. Fields ------ .. index:: pair: variable; m_axis .. _doxid-struct_q_panda_1_1_variational_1_1impl__stack_1a30d5ad3a3e715c86a837360e08fd17fd: .. ref-code-block:: cpp :class: doxyrest-title-code-block int m_axis stack axis, should be either 0 or 1. Construction ------------ .. index:: pair: function; impl_stack .. _doxid-struct_q_panda_1_1_variational_1_1impl__stack_1a05fc539027139a7de59db97ec1092530: .. ref-code-block:: cpp :class: doxyrest-title-code-block impl_stack(int axis, const std::vector<:ref:`var`>&) Construct a new impl stack object by the axis and children. y = stack(axis=0, [a,b,c,d]). It will try to place a,b,c,d into one matrix with the same columns, if axis==1, the same rows. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - axis - the stack axis.