Util
import mathy_envs.util
pad_array¶
pad_array(in_list: List[Any], max_length: int, value: Any = 0) -> List[Any]
Arguments:
in_list (List[Any]): List of values to pad to the given length max_length (int): The desired length of the array value (Any): a value to insert in order to pad the array to max length
Returns
(List[Any])
: An array padded to max_length
size