pyrt.set_negative_coefficients_to_0#
- pyrt.set_negative_coefficients_to_0(coefficients)[source]#
Set all Legendre coefficients to 0 after the first negative coefficient.
- Parameters:
coefficients (ArrayLike) – 1-dimensional array of Legendre coefficients.
- Returns:
1-dimensional array zeroed coefficients. If no coefficients are negative, this is identical to the input array.
- Return type:
np.ndarray