reshape_1d_arg#

relife.utils.reshape_1d_arg(arg)[source]#

Reshapes ReLife arguments that are expected to be 0d or 1d.

Parameters:
argfloat, 0d or 1d array
Returns:
np.float64 or (m, 1) shaped array

Reshaped array used to ensure broadcasting compatibility in computations.