#NEWLINE# def _build_coefficients( self ) : #NEWLINE# #INDENT# self . v = self . target . points . T . copy ( ) #NEWLINE# self . y = np . hstack ( [ self . v , np . zeros ( [ 2 , 3 ] ) ] ) #NEWLINE# ( _u , _s , _v ) = np . linalg . svd ( self . l ) #NEWLINE# keep = ( _s . shape [ 0 ] - sum ( ( _s < self . min_singular_val ) ) ) #NEWLINE# inv_l = _u [ : , : keep ] . dot ( ( ( 1.0 / _s [ : keep , None ] ) * _v [ : keep , : ] ) ) #NEWLINE# self . coefficients = inv_l . dot ( self . y . T )