def svdvals(a, overwrite_a=False, check_finite=True):
 a = _asarray_validated(a, check_finite=check_finite)
 if a.size:
  return svd(a, compute_uv=0, overwrite_a=overwrite_a, check_finite=False)
 elif (len(a.shape) != 2):
  raise ValueError('expected matrix')
 else:
  return numpy.empty(0)

def svdvals ( a , overwrite_a = False , check_finite = True ) : a = _asarray_validated ( a , check_finite = check_finite ) if a . size : return svd ( a , compute_uv = 0 , overwrite_a = overwrite_a , check_finite = False ) elif ( len ( a . shape ) != 2 ) : raise ValueError ( 'expected matrix' ) else : return numpy . empty ( 0 )
compute singular values of a matrix .