docstr: ivy.Array instance method variant of ivy.diagflat. This method
  simply wraps the function, and so the docstring for ivy.diagflat also
  applies to this method with minimal changes.
  
  Examples
  --------
  >>> x = ivy.array([1,2])
  >>> x.diagflat(k=1)
  ivy.array([[0, 1, 0],
             [0, 0, 2],
             [0, 0, 0]])
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.diagflat",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.diagflat","also","applies","to","this","method","with","minimal","changes",".","Examples","--","--","--","--",">",">",">","x","=","ivy.array","(","[","1,2","]",")",">",">",">","x.diagflat","(","k=1",")","ivy.array","(","[","[","0",",","1",",","0","]",",","[","0",",","0",",","2","]",",","[","0",",","0",",","0","]","]",")"]
code: def diagflat(
      self: Union[ivy.Array, ivy.NativeArray],
      /,
      *,
      offset: int = 0,
      padding_value: float = 0,
      align: str = "RIGHT_LEFT",
      num_rows: int = -1,
      num_cols: int = -1,
      out: Optional[Union[ivy.Array, ivy.NativeArray]] = None,
  ) -> ivy.Array:
      """ivy.Array instance method variant of ivy.diagflat. This method
      simply wraps the function, and so the docstring for ivy.diagflat also
      applies to this method with minimal changes.
  
      Examples
      --------
      >>> x = ivy.array([1,2])
      >>> x.diagflat(k=1)
      ivy.array([[0, 1, 0],
                 [0, 0, 2],
                 [0, 0, 0]])
      """
      return ivy.diagflat(
          self._data,
          offset=offset,
          padding_value=padding_value,
          align=align,
          num_rows=num_rows,
          num_cols=num_cols,
          out=out,
      )
  
imports: import abc
  from typing import Optional, Union, Tuple, List, Sequence, Literal
  import ivy
label_desc: Use image node_id 2 for calling the _ArrayWithLinearAlgebraExperimental obj's underlying member method code with example usage: obj.diagflat() and returns: ivy