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)
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)