コード例 #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)
コード例 #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)