parameters: (self, constraints_tuple)
return_statement: return matrix_str
docstring: Returns a string for the value of the Matrix of intensity
          constraint values
docstring_summary: Returns a string for the value of the Matrix of intensity
          constraint values
docstring_tokens: Returns a string for the value of the Matrix of intensity constraint values
function: def create_matrix_string(self, constraints_tuple):
          """Returns a string for the value of the Matrix of intensity
          constraint values
          """
          if constraints_tuple is None or len(constraints_tuple) == 0:
              return ""
  
          nrows = len(constraints_tuple)
          ncols = len(constraints_tuple[0])
  
          matrix_str = "\"Matrix(%d|%d)%s\""
          values = ""
          for row in constraints_tuple:
              for val in row:
                  values += "%f|" % val
          values = values.rstrip("|")
          matrix_str = matrix_str % (nrows, ncols, values)
          return matrix_str
function_tokens: def create_matrix_string ( self , constraints_tuple ) : if constraints_tuple is None or len ( constraints_tuple ) == 0 : return "" nrows = len ( constraints_tuple ) ncols = len ( constraints_tuple [ 0 ] ) matrix_str = "\"Matrix(%d|%d)%s\"" values = "" for row in constraints_tuple : for val in row : values += "%f|" % val values = values . rstrip ( "|" ) matrix_str = matrix_str % ( nrows , ncols , values ) return matrix_str