datablock()#
- static ConstantOperator.datablock(states, inputs=None)[source]#
Return the data matrix block corresponding to the operator, a row vector of ones.
Since \(\Ophat_\ell(\qhat,\u) = \Ohat_{\ell}\d_{\ell}(\qhat,\u)\) with \(\Ohat_{\ell} = \chat\) and \(\d_{\ell}(\qhat,\u) = 1\), the data block is
\[\D\trp = \left[\begin{array}{ccc} \d_{\ell}(\qhat_0,\u_0) & \cdots & \d_{\ell}(\qhat_{k-1},\u_{k-1}) \end{array}\right] = \left[\begin{array}{ccc} 1 & \cdots & 1 \end{array}\right] \in \RR^{1 \times k}.\]- Parameters:
- states(r, k) or (k,) ndarray
State vectors. Each column is a single state vector. If one dimensional, it is assumed that \(r = 1\).
- inputs(m, k) or (k,) ndarray or None
Input vectors (not used).
- Returns:
- block(1, k) ndarray
Row vector of ones.