#include "EpetraExt_OperatorOut.h"
#include "EpetraExt_mmio.h"
#include "Epetra_Comm.h"
#include "Epetra_Map.h"
#include "Epetra_Vector.h"
#include "Epetra_MultiVector.h"
#include "Epetra_IntVector.h"
#include "Epetra_SerialDenseVector.h"
#include "Epetra_IntSerialDenseVector.h"
#include "Epetra_Import.h"
#include "Epetra_CrsMatrix.h"
Include dependency graph for EpetraExt_OperatorOut.cpp:
Go to the source code of this file.
Namespaces  
namespace  EpetraExt 
Functions  
int  OperatorToMatlabFile (const char *filename, const Epetra_Operator &A) 
Writes an Epetra_Operator object to a file that is compatible with Matlab.  
int  OperatorToMatrixMarketFile (const char *filename, const Epetra_Operator &A, const char *matrixName, const char *matrixDescription, bool writeHeader) 
Writes an Epetra_Operator object to a Matrix Market format file, forming the coefficients by applying the operator to the e_j vectors.  
int  OperatorToHandle (FILE *handle, const Epetra_Operator &A) 
Writes an Epetra_Operator object to a format file that is compatible with Matlab.  
int  writeOperatorStrip (FILE *handle, const Epetra_MultiVector &y, const Epetra_Map &rootDomainMap, const Epetra_Map &rootRangeMap, int startColumn) 
int  get_nz (const Epetra_Operator &A, int &nz) 

Writes an Epetra_Operator object to a file that is compatible with Matlab. This function takes any matrix that implements the Epetra_Operator interface and writes it to the specified file. The matrix can be distributed or serial. This function is a convenience wrapper around OperatorToMatrixMarketFile. The following Matlab commands can be used to read the resulting file and convert to it to a Matlab sparse matrix:
Definition at line 43 of file EpetraExt_OperatorOut.cpp. 

Writes an Epetra_Operator object to a Matrix Market format file, forming the coefficients by applying the operator to the e_j vectors. This function takes any linear operator that implements the Epetra_Operator interface and writes it to the specified file. The operator can be distributed or serial. The user can provide a strings containing the matrix name, a matrix description, and specify that header information should or should not be printed to the file. The coeffients are formed by applying the operator to the canonical vectors
where the value 1 appears in the the jth entry. The number of canonical vectors used is determined by the size of the OperatorDomainMap() and the lengths by the size of OperatorRangeMap().
Definition at line 50 of file EpetraExt_OperatorOut.cpp. 

Writes an Epetra_Operator object to a format file that is compatible with Matlab. This function takes any matrix that implements the Epetra_Operator interface and writes it to the specified file handle. The matrix can be distributed or serial. This function is a convenience wrapper around OperatorToMatrixMarketFile.
Definition at line 98 of file EpetraExt_OperatorOut.cpp. 

Definition at line 161 of file EpetraExt_OperatorOut.cpp. 

Definition at line 185 of file EpetraExt_OperatorOut.cpp. 