#NEWLINE# @ collective #NEWLINE# def dump( self , filename ) : #NEWLINE# #INDENT# 'Dump the matrix to file ``filename`` in PETSc binary format.' #NEWLINE# base . _trace . evaluate ( set ( [ self ] ) , set ( ) ) #NEWLINE# vwr = PETSc . Viewer ( ) . createBinary ( filename , PETSc . Viewer . Mode . WRITE ) #NEWLINE# self . handle . view ( vwr )