class_docstr: Spider: a set of rays attached to the origin.
  
  The k-spider consists of k copies of the positive real line
  :math:`\mathbb{R}_{\geq 0}` glued together at the origin [Feragen2020]_.
  
  Parameters
  ----------
  n_rays : int
      Number of rays to attach to the origin.
      Note that zero counts as the origin not as a ray.
  
  References
  ----------
  .. [Feragen2020]  Feragen, Aasa, and Tom Nye. "Statistics on stratified spaces."
      Riemannian Geometric Statistics in Medical Image Analysis.
      Academic Press, 2020. 299-342.
class_docstr_tok: ["Spider",":","a","set","of","rays","attached","to","the","origin",".","The","k-spider","consists","of","k","copies","of","the","positive","real","line",":","math",":","`","\\mathbb","{","R","}","_","{","\\geq","0","}","`","glued","together","at","the","origin","[","Feragen2020","]","_.","Parameters","--","--","--","--","--","n_rays",":","int","Number","of","rays","to","attach","to","the","origin",".","Note","that","zero","counts","as","the","origin","not","as","a","ray",".","References","--","--","--","--","--","..","[","Feragen2020","]","Feragen",",","Aasa",",","and","Tom","Nye",".","``","Statistics","on","stratified","spaces",".","''","Riemannian","Geometric","Statistics","in","Medical","Image","Analysis",".","Academic","Press",",","2020",".","299-342","."]
docstr: Turn a point into an array compatible with the dimension of the space.
  
  Parameters
  ----------
  point : SpiderPoint or list of SpiderPoint, shape=[...]
       Points to be checked.
  
  Returns
  -------
  point_array : array-like, shape=[...,n_rays]
      An array with the stratum_coord parameter in the stratum position.
docstr_tok: ["Turn","a","point","into","an","array","compatible","with","the","dimension","of","the","space",".","Parameters","--","--","--","--","--","point",":","SpiderPoint","or","list","of","SpiderPoint",",","shape=","[","...","]","Points","to","be","checked",".","Returns","--","--","--","-","point_array",":","array-like",",","shape=","[","...",",","n_rays","]","An","array","with","the","stratum_coord","parameter","in","the","stratum","position","."]
code: def set_to_array(self, point):
      r"""Turn a point into an array compatible with the dimension of the space.
  
      Parameters
      ----------
      point : SpiderPoint or list of SpiderPoint, shape=[...]
           Points to be checked.
  
      Returns
      -------
      point_array : array-like, shape=[...,n_rays]
          An array with the stratum_coord parameter in the stratum position.
      """
      point_to_array = gs.zeros((len(point), self.n_rays))
      for i, pt in enumerate(point):
          point_to_array[i, pt.stratum - 1] = pt.stratum_coord
      return point_to_array
  
imports: import geomstats.backend
  from geomstats.geometry.euclidean import Euclidean
  from geomstats.geometry.stratified.point_set import Point, PointSet, PointSetMetric, _vectorize_point, broadcast_lists
label_desc: Use image node_id 7 for calling the Spider obj's underlying member method code with example usage: obj.set_to_array(point) and returns: point_to_array