def vector_from_matrix(v_as_matrix):
 return [row[0] for row in v_as_matrix]

def vector_from_matrix ( v_as_matrix ) : return [ row [ 0 ] for row in v_as_matrix ]
returns the n x 1 matrix as a list of values .