parameters: (self, z)
return_statement: return LinearOperator((self.n_vars+self.n_ineq,
                                 self.n_vars+self.n_ineq),
                                matvec)
docstring: Returns scaling vector.
          Given by:
              scaling = [ones(n_vars), s]
docstring_summary: Returns scaling vector.
          Given by:
              scaling = [ones(n_vars), s]
docstring_tokens: Returns scaling vector . Given by : scaling = [ ones ( n_vars ) s ]
function: def scaling(self, z):
          """Returns scaling vector.
          Given by:
              scaling = [ones(n_vars), s]
          """
          s = self.get_slack(z)
          diag_elements = np.hstack((np.ones(self.n_vars), s))
  
          # Diagonal Matrix
          def matvec(vec):
              return diag_elements*vec
          return LinearOperator((self.n_vars+self.n_ineq,
                                 self.n_vars+self.n_ineq),
                                matvec)
function_tokens: def scaling ( self , z ) : s = self . get_slack ( z ) diag_elements = np . hstack ( ( np . ones ( self . n_vars ) , s ) ) # Diagonal Matrix def matvec ( vec ) : return diag_elements * vec return LinearOperator ( ( self . n_vars + self . n_ineq , self . n_vars + self . n_ineq ) , matvec )