original_docstring: 
      Print the given Numpy matrix in Octave format, listing the given
      matrix name and the object that owns it (if any).
      
docstring: Print the given Numpy matrix in Octave format, listing the given
  matrix name and the object that owns it (if any).
docstring_tokens: Print the given Numpy matrix in Octave format listing the given matrix name and the object that owns it ( if any ) .
code: def octave_str(mat,name="mat",owner=""):
      """
      Print the given Numpy matrix in Octave format, listing the given
      matrix name and the object that owns it (if any).
      """
      # This just prints the string version of the matrix and does search/replace
      # to convert it; there may be a faster or easier way.
      mstr=np.array2string(mat)
      mstr=re.sub('\n','',mstr)
      mstr=re.sub('[[]','',mstr)
      mstr=re.sub('[]]','\n',mstr)
      return ("# Created from %s %s\n# name: %s\n# type: matrix\n# rows: %s\n# columns: %s\n%s" %
             (owner,name,name,mat.shape[0],mat.shape[1],mstr))
code_tokens: def octave_str ( mat , name = "mat" , owner = "" ) : mstr = np . array2string ( mat ) mstr = re . sub ( '\n' , '' , mstr ) mstr = re . sub ( '[[]' , '' , mstr ) mstr = re . sub ( '[]]' , '\n' , mstr ) return ( "# Created from %s %s\n# name: %s\n# type: matrix\n# rows: %s\n# columns: %s\n%s" % ( owner , name , name , mat . shape [ 0 ] , mat . shape [ 1 ] , mstr ) )
short_docstring: Print the given Numpy matrix in Octave format, listing the given
  matrix name and the object that owns it (if any).
short_docstring_tokens: Print the given Numpy matrix in Octave format listing the given matrix name and the object that owns it ( if any ) .
comment: """
      Print the given Numpy matrix in Octave format, listing the given
      matrix name and the object that owns it (if any).
      """$SEP$# This just prints the string version of the matrix and does search/replace$SEP$# to convert it; there may be a faster or easier way.