fnalongmx::array along(const mx::array & v, int axis, int ndim)sourceeditv laid along axis of an ndim-axis array, length one elsewhere.