hopsy.generate_unit_simplex#
- hopsy.generate_unit_simplex(dimension: int) Tuple[ndarray, ndarray] #
Generate matrix A and vector b of the unit N-dimensional simplex.
- Parameters:
dimension (int) – Dimension N of the cube
- Returns:
First value is the matrix A of shape (2*N, N), second the vector b of shape (2*N,)
- Return type:
tuple[np.ndarray, np.ndarray]