#NEWLINE# def test_simple( self ) : #NEWLINE# #INDENT# a = [ [ 8 , 2 , 3 ] , [ 2 , 9 , 3 ] , [ 3 , 3 , 6 ] ] #NEWLINE# c = cholesky ( a ) #NEWLINE# assert_array_almost_equal ( dot ( transpose ( c ) , c ) , a ) #NEWLINE# c = transpose ( c ) #NEWLINE# a = dot ( c , transpose ( c ) ) #NEWLINE# assert_array_almost_equal ( cholesky ( a , lower = 1 ) , c )