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: Check if a point `wald` belongs to Wald space.
  
  From FUTURE PUBLICATION we know that the corresponding matrix of a wald is
  strictly positive definite if and only if the labels are separated by at least
  one edge, which is exactly when the wald is an element of the Wald space.
  
  Parameters
  ----------
  point : Wald or list of Wald
      The point to be checked.
  
  Returns
  -------
  belongs : bool
      Boolean denoting if `point` belongs to Wald space.
code: def belongs(self, point):
      """Check if a point `wald` belongs to Wald space.
  
      From FUTURE PUBLICATION we know that the corresponding matrix of a wald is
      strictly positive definite if and only if the labels are separated by at least
      one edge, which is exactly when the wald is an element of the Wald space.
  
      Parameters
      ----------
      point : Wald or list of Wald
          The point to be checked.
  
      Returns
      -------
      belongs : bool
          Boolean denoting if `point` belongs to Wald space.
      """
      is_spd = [
          self.ambient.belongs(single_point.to_array())
          for single_point in point
      ]
      is_between_0_1 = [
          gs.all(w.weights > 0) and gs.all(w.weights < 1) for w in point
      ]
      results = [
          is1 and is2 for is1, is2 in zip(is_spd, is_between_0_1)
      ]
      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 2 for calling the WaldSpace obj's underlying member method code with example usage: obj.belongs(point) and returns: results