def choose_ncv(k):
 return max(((2 * k) + 1), 20)

def choose_ncv ( k ) : return max ( ( ( 2 * k ) + 1 ) , 20 )
choose number of lanczos vectors based on target number of singular/eigen values and vectors to compute .