#NEWLINE# def __init__( self , Y , laplacian , n_dim = None , mode_inv = 'svd' ) : #NEWLINE# #INDENT# self . Y = Y #NEWLINE# ( self . n , self . mdimY ) = Y . shape #NEWLINE# self . L = laplacian #NEWLINE# if ( n_dim is None ) : #NEWLINE# #INDENT# self . mdimG = self . mdimY #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( n_dim > self . mdimY ) : #NEWLINE# #INDENT# raise ValueError ( 'n_dim must be <= Y.shape[1]' ) #NEWLINE# #UNINDENT# self . mdimG = n_dim #NEWLINE# #UNINDENT# self . mode_inv = mode_inv #NEWLINE# if ( self . mode_inv not in set ( ( 'svd' , 'inv' ) ) ) : #NEWLINE# #INDENT# raise ValueError ( ( "%s is not a valid value. Expected 'svd', 'inv'" % self . mode_inv ) ) #NEWLINE# #UNINDENT# self . H = None #NEWLINE# self . G = None #NEWLINE# self . Hvv = None #NEWLINE# self . Hsvals = None #NEWLINE# self . Gsvals = None #NEWLINE# self . detG = None