pycvxset.common.prune_and_round_vertices¶
- pycvxset.common.prune_and_round_vertices(V: Sequence[Sequence[float]] | ndarray, decimal_precision: int = 3) ndarray[source]¶
Filter through the vertices to skip any point that has another point (down in the list) that is close to it in the list.
- Parameters:
V (Sequence[Sequence[float]] | np.ndarray) – Matrix of vertices (N times self.dim)
decimal_precision (int, optional) – The decimal precision for rounding the vertices. Defaults to PLOTTING_DECIMAL_PRECISION_CDD from pycvxset.common.constants.
- Returns:
The pruned and rounded array of vertices.
- Return type:
numpy.ndarray