Exemple #1
0
 def exportMmf(self, filename):
     """
     Exports the matrix to a Matrix Market file of the given `filename`.
     """
     self.fillComplete()
     EpetraExt.RowMatrixToMatrixMarketFile(text_to_native_str(filename),
                                           self.matrix)
Exemple #2
0
 def exportMmf(self, filename):
     """
     Exports the matrix to a Matrix Market file of the given filename.
     """
     if not self.matrix.Filled():
         self.matrix.FillComplete()
     EpetraExt.RowMatrixToMatrixMarketFile(filename, self.matrix)