def getConditionNumber(self, K):
    condNumber = 1e-09
    condA = 1000000000000.0
    matSize = K.shape[0]
    while (condA > 100000000000.0):
        condNumber = (condNumber * 10)
        A = (K + (condNumber * np.identity(matSize)))
        condA = (np.linalg.norm(A, ord=2) * np.linalg.norm(np.linalg.inv(A), ord=2))
    return condNumber
def getConditionNumber(self, K):
    condNumber = 1e-09
    condA = 1000000000000.0
    matSize = K.shape[0]
    while (condA > 100000000000.0):
        condNumber = (condNumber * 10)
        A = (K + (condNumber * np.identity(matSize)))
        condA = (np.linalg.norm(A, ord=2) * np.linalg.norm(np.linalg.inv(A), ord=2))
    return condNumber