class_docstr: Class for the Wald space, a metric space for phylogenetic forests.
  
  Parameters
  ----------
  n_labels : int
      Integer determining the number of labels in the forests, and thus the shape of
      the correlation matrices: n_labels x n_labels.
  
  Attributes
  ----------
  ambient :
      The ambient space, the positive definite n_labels x n_labels matrices that the
      WaldSpace is embedded into.
class_docstr_tok: ["Class","for","the","Wald","space",",","a","metric","space","for","phylogenetic","forests",".","Parameters","--","--","--","--","--","n_labels",":","int","Integer","determining","the","number","of","labels","in","the","forests",",","and","thus","the","shape","of","the","correlation","matrices",":","n_labels","x","n_labels",".","Attributes","--","--","--","--","--","ambient",":","The","ambient","space",",","the","positive","definite","n_labels","x","n_labels","matrices","that","the","WaldSpace","is","embedded","into","."]
docstr: Convert a set of points into an array.
  
  Parameters
  ----------
  points : list of Wald, shape=[...]
      Number of samples of wälder to turn into an array.
  
  Returns
  -------
  points_array : array-like, shape=[...]
      Array of the wälder that are turned into arrays.
code: def set_to_array(self, points):
      """Convert a set of points into an array.
  
      Parameters
      ----------
      points : list of Wald, shape=[...]
          Number of samples of wälder to turn into an array.
  
      Returns
      -------
      points_array : array-like, shape=[...]
          Array of the wälder that are turned into arrays.
      """
      results = gs.array([wald.to_array() for wald in points])
      return results
  
imports: import functools
  import itertools
  import geomstats.backend
  import geomstats.geometry.spd_matrices
  from geomstats.geometry.stratified.point_set import Point, PointSet, _vectorize_point
label_desc: Use image node_id 4 for calling the WaldSpace obj's underlying member method code with example usage: obj.set_to_array(points) and returns: results