#NEWLINE# def test_tripleMultiply( self ) : #NEWLINE# #INDENT# M = Mesh . TensorMesh ( [ 2 , 4 ] , '0C' ) #NEWLINE# expMap = Maps . ExpMap ( t_true ) #NEWLINE# vertMap = Maps . SurjectVertical1D ( M ) #NEWLINE# actMap = Maps . InjectActiveCells ( M , ( M . vectorCCy <= 0 ) , 10 , nC = M . nCy ) #NEWLINE# m = np . r_ [ ( 1 , 2.0 ) ] #NEWLINE# t_true = np . exp ( np . r_ [ ( 1 , 1 , 2 , 2 , 10 , 10 , 10 , 10.0 ) ] ) #NEWLINE# self . assertLess ( np . linalg . norm ( ( ( ( ( expMap * vertMap ) * actMap ) * m ) - t_true ) , np . inf ) , TOL ) #NEWLINE# self . assertLess ( np . linalg . norm ( ( ( ( ( expMap * vertMap ) * actMap ) * m ) - t_true ) , np . inf ) , TOL ) #NEWLINE# self . assertLess ( np . linalg . norm ( ( ( ( expMap * vertMap ) * ( actMap * m ) ) - t_true ) , np . inf ) , TOL ) #NEWLINE# self . assertLess ( np . linalg . norm ( ( ( ( expMap * ( vertMap * actMap ) ) * m ) - t_true ) , np . inf ) , TOL ) #NEWLINE# self . assertLess ( np . linalg . norm ( ( ( ( ( expMap * vertMap ) * actMap ) * m ) - t_true ) , np . inf ) , TOL ) #NEWLINE# self . assertRaises ( ValueError , ( lambda : ( ( expMap * actMap ) * vertMap ) ) ) #NEWLINE# self . assertRaises ( ValueError , ( lambda : ( ( actMap * vertMap ) * expMap ) ) )