docstr: Create matrix m x n filled with zeros.
  One given dimension will create square matrix n x n.
  
  Example:
  >>> from mpmath import zeros, mp
  >>> mp.pretty = False
  >>> zeros(2)
  matrix(
  [['0.0', '0.0'],
   ['0.0', '0.0']])
docstr_tok: ["Create","matrix","m","x","n","filled","with","zeros",".","One","given","dimension","will","create","square","matrix","n","x","n.","Example",":",">",">",">","from","mpmath","import","zeros",",","mp",">",">",">","mp.pretty","=","False",">",">",">","zeros","(","2",")","matrix","(","[","[","'","0.0","'",",","'","0.0","'","]",",","[","'","0.0","'",",","'","0.0","'","]","]",")"]
code: def zeros(ctx, *args, **kwargs):
      """
      Create matrix m x n filled with zeros.
      One given dimension will create square matrix n x n.
  
      Example:
      >>> from mpmath import zeros, mp
      >>> mp.pretty = False
      >>> zeros(2)
      matrix(
      [['0.0', '0.0'],
       ['0.0', '0.0']])
      """
      if len(args) == 1:
          m = n = args[0]
      elif len(args) == 2:
          m = args[0]
          n = args[1]
      else:
          raise TypeError(
              "zeros expected at most 2 arguments, got %i" % len(args)
          )
      A = ctx.matrix(m, n, **kwargs)
      for i in xrange(m):
          for j in xrange(n):
              A[i, j] = 0
      return A
  
imports: from ..libmp.backend import xrange
  import warnings
label_desc: Use image node_id 4 for calling the MatrixMethods obj's underlying member method code with example usage: obj.zeros(ctx) and returns: A