docstr: ivy.Array instance method variant of ivy.cross. This method simply
  wraps the function, and so the docstring for ivy.cross also applies to
  this method with minimal changes.
  
  Parameters
  ----------
  self
      first input array. Should have a numeric data type.
  x2
      second input array. Must be compatible with ``self``
      (see :ref:`broadcasting`). Should have a numeric data type.
  axis
      the axis (dimension) of x1 and x2 containing the vectors for which to
      compute (default: -1) the cross product.vIf set to -1, the function
      computes the cross product for vectors defined by the last axis (dimension).
      Default: ``-1``.
  out
      optional output array, for writing the result to. It must have a shape that
      the inputs broadcast to.
  
  Returns
  -------
  ret
      an array containing the element-wise products. The returned array must
      have a data type determined by :ref:`type-promotion`.
  
  Examples
  --------
  With :class:`ivy.Array` instance inputs:
  
  >>> x = ivy.array([1., 0., 0.])
  >>> y = ivy.array([0., 1., 0.])
  >>> z = x.cross(y)
  >>> print(z)
  ivy.array([0., 0., 1.])
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.cross",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.cross","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","first","input","array",".","Should","have","a","numeric","data","type",".","x2","second","input","array",".","Must","be","compatible","with","``","self","``","(","see",":","ref",":","`","broadcasting","`",")",".","Should","have","a","numeric","data","type",".","axis","the","axis","(","dimension",")","of","x1","and","x2","containing","the","vectors","for","which","to","compute","(","default",":","-1",")","the","cross","product.vIf","set","to","-1",",","the","function","computes","the","cross","product","for","vectors","defined","by","the","last","axis","(","dimension",")",".","Default",":","``","-1","``",".","out","optional","output","array",",","for","writing","the","result","to",".","It","must","have","a","shape","that","the","inputs","broadcast","to",".","Returns","--","--","--","-","ret","an","array","containing","the","element-wise","products",".","The","returned","array","must","have","a","data","type","determined","by",":","ref",":","`","type-promotion","`",".","Examples","--","--","--","--","With",":","class",":","`","ivy.Array","`","instance","inputs",":",">",">",">","x","=","ivy.array","(","[","1.",",","0.",",","0",".","]",")",">",">",">","y","=","ivy.array","(","[","0.",",","1.",",","0",".","]",")",">",">",">","z","=","x.cross","(","y",")",">",">",">","print","(","z",")","ivy.array","(","[","0.",",","0.",",","1",".","]",")"]
code: def cross(
      self: ivy.Array,
      x2: Union[ivy.Array, ivy.NativeArray],
      /,
      *,
      axis: int = -1,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """ivy.Array instance method variant of ivy.cross. This method simply
      wraps the function, and so the docstring for ivy.cross also applies to
      this method with minimal changes.
  
      Parameters
      ----------
      self
          first input array. Should have a numeric data type.
      x2
          second input array. Must be compatible with ``self``
          (see :ref:`broadcasting`). Should have a numeric data type.
      axis
          the axis (dimension) of x1 and x2 containing the vectors for which to
          compute (default: -1) the cross product.vIf set to -1, the function
          computes the cross product for vectors defined by the last axis (dimension).
          Default: ``-1``.
      out
          optional output array, for writing the result to. It must have a shape that
          the inputs broadcast to.
  
      Returns
      -------
      ret
          an array containing the element-wise products. The returned array must
          have a data type determined by :ref:`type-promotion`.
  
      Examples
      --------
      With :class:`ivy.Array` instance inputs:
  
      >>> x = ivy.array([1., 0., 0.])
      >>> y = ivy.array([0., 1., 0.])
      >>> z = x.cross(y)
      >>> print(z)
      ivy.array([0., 0., 1.])
      """
      return ivy.cross(self._data, x2, axis=axis, out=out)
  
imports: import abc
  from typing import Union, Optional, Literal, Tuple, List, Sequence
  import ivy
label_desc: Use image node_id 3 for calling the _ArrayWithLinearAlgebra obj's underlying member method code with example usage: obj.cross() and returns: ivy