def getAdaptiveSVDDims(self, singularValues, fractionOfMax=<NUM_LIT>):
v = singularValues/singularValues[<NUM_LIT:0>]<EOL>idx = numpy.where(v<fractionOfMax)[<NUM_LIT:0>]<EOL>if len(idx):<EOL><INDENT>print("<STR_LIT>", idx[<NUM_LIT:0>], "<STR_LIT>", len(v))<EOL>return idx[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>print("<STR_LIT>", len(v)-<NUM_LIT:1>, "<STR_LIT>", len(v))<EOL>return len(v)-<NUM_LIT:1><EOL><DEDENT>
Compute the number of eigenvectors (singularValues) to keep.

:param singularValues:
:param fractionOfMax:
:return: