def cartesian_to_homogeneous_vectors(cartesian_vector, matrix_type="<STR_LIT>"):
dimension_x = cartesian_vector.shape[<NUM_LIT:0>]<EOL>if matrix_type == "<STR_LIT>":<EOL><INDENT>homogeneous_vector = np.zeros(dimension_x + <NUM_LIT:1>)<EOL>homogeneous_vector[-<NUM_LIT:1>] = <NUM_LIT:1><EOL>homogeneous_vector[:-<NUM_LIT:1>] = cartesian_vector<EOL><DEDENT>return homogeneous_vector<EOL>
Converts a cartesian vector to an homogenous vector