parameters: (X)
return_statement: return reshape(X, (X.size,))
docstring: Flattens the matrix X into a vector in column-major order.
  
      Parameters
      ----------
      X : Expression or numeric constant
          The matrix to flatten.
  
      Returns
      -------
      Expression
          An Expression representing the flattened matrix.
docstring_summary: Flattens the matrix X into a vector in column-major order.
docstring_tokens: Flattens the matrix X into a vector in column - major order .
function: def vec(X):
      """Flattens the matrix X into a vector in column-major order.
  
      Parameters
      ----------
      X : Expression or numeric constant
          The matrix to flatten.
  
      Returns
      -------
      Expression
          An Expression representing the flattened matrix.
      """
      X = Expression.cast_to_const(X)
      return reshape(X, (X.size,))
function_tokens: def vec ( X ) : X = Expression . cast_to_const ( X ) return reshape ( X , ( X . size , ) )