EpetraExt Namespace Reference

EpetraExt::BlockCrsMatrix: A class for constructing a distributed block matrix. More...


Classes

class  EpetraExt::BlockCrsMatrix
class  EpetraExt::BlockMultiVector
class  EpetraExt::BlockUtility
class  EpetraExt::BlockVector
class  EpetraExt::MultiMpiComm
class  EpetraExt::MultiPointModelEvaluator
class  EpetraExt::LinearProblem_BlockJacobi
class  EpetraExt::CrsGraph_BTF
 Block Triangular Factorization (Reordering) of Epetra_CrsGraph. More...
class  EpetraExt::CrsMatrix_BTF
class  EpetraExt::LinearProblem_BTF
class  EpetraExt::CrsGraph_MapColoring
 Map Coloring of independent columns in a Graph. More...
class  EpetraExt::CrsGraph_MapColoringIndex
 Generates a std::vector of Epetra_IntVector's to be used to map perturbation contributions to a CrsGraph/CrsMatrix from a perturbed vector. More...
class  EpetraExt::Directory< KT, DT, DH, AC, MG >
 Distributed Directory Tool. More...
class  EpetraExt::Hash< T >
class  EpetraExt::Hash< std::string >
class  EpetraExt::Migrate< KT, DT >
 Data Migration Utility used by EpetraExt::Directory. More...
class  EpetraExt::Migrate1< DT >
struct  EpetraExt::PackTraits< T >
 Traits for packing and unpacking of data into char buffers for communication. More...
struct  EpetraExt::PackTraits< std::string >
 Full specialization of PackTraits for std::string. More...
struct  EpetraExt::PackTraits< std::vector< T > >
 Partial specialization of PackTraits for std::vector<> containing a primitive type. More...
class  EpetraExt::CrsMatrixStruct
class  EpetraExt::MatrixMatrix
 Collection of matrix-matrix operations. More...
class  EpetraExt::ProductOperator
 Implements Epetra_Operator as a product of one or more Epetra_Operator objects. More...
class  EpetraExt::DistArray< T >
 DistArray<T>: A class to store row-oriented multivectors of type T. More...
class  EpetraExt::Exception
class  EpetraExt::HDF5
 class HDF5: A class for storing Epetra objects in parallel binary files More...
class  EpetraExt::Handle
class  EpetraExt::Epetra_Vector_Handle
class  EpetraExt::XMLReader
 class XMLReader: A class for reading Epetra objects stored in XML files. More...
class  EpetraExt::XMLWriter
 class XMLWriter: A class for writing Trilinos objects to XML files. More...
class  EpetraExt::EpetraExt_MatlabEngine
 A class which provides data and command access to Matlab from Epetra. More...
class  EpetraExt::ModelEvaluator
 Base interface for evaluating a stateless "model". More...
class  EpetraExt::ModelEvaluator::InArgs
  More...
class  EpetraExt::ModelEvaluator::Evaluation< ObjType >
  More...
class  EpetraExt::ModelEvaluator::DerivativeSupport
  More...
struct  EpetraExt::ModelEvaluator::DerivativeProperties
  More...
class  EpetraExt::ModelEvaluator::DerivativeMultiVector
 Simple aggregate class for a derivative object represented as a column-wise multi-vector or its transpose as a row-wise multi-vector. More...
class  EpetraExt::ModelEvaluator::Derivative
 Simple aggregate class that stores a derivative object as a general linear operator or as a multi-vector. More...
class  EpetraExt::ModelEvaluator::OutArgs
  More...
class  EpetraExt::ModelEvaluator::InArgsSetup
  More...
class  EpetraExt::ModelEvaluator::OutArgsSetup
  More...
class  EpetraExt::InArgsGetterSetter_x_dot
 Class that gets and sets x_dot in an InArgs object. More...
class  EpetraExt::InArgsGetterSetter_x
 Class that gets and sets x in an InArgs object. More...
class  EpetraExt::InArgsGetterSetter_p
 Class that gets and sets p(l) in an InArgs object. More...
class  EpetraExt::OutArgsGetterSetter_f
 Class that gets and sets f in an OutArgs object. More...
class  EpetraExt::OutArgsGetterSetter_g
 Class that gets and sets g(j) in an OutArgs object. More...
class  EpetraExt::CrsGraph_AMD
 EpetraExt::CrsGraph_AMD: A transform for Approximate Minimum Degree Reordering using Tim Daley's AMD Algorithm. More...
class  EpetraExt::LinearProblem_CrsSingletonFilter
 Epetra_CrsSingletonFilter: A class for explicitly eliminating matrix rows and columns. More...
class  EpetraExt::CrsMatrix_Dirichlet
 Given an input Epetra_LinearProblem, apply given dirichlet conditions. More...
class  EpetraExt::Vector_Dirichlet
 Given an input Epetra_Vector, apply given dirichlet conditions. More...
class  EpetraExt::LinearProblem_GraphTrans
 EpetraExt::LinearProblem_GraphTrans: Adaptation of a Epetra_CrsGraph Transform to a Epetra_LinearProblem Transform. More...
class  EpetraExt::LinearProblem_MatrixTrans
 Adaptation of an Epetra_CrsMatrix Transform to a Epetra_LinearProblem Transform. More...
class  EpetraExt::CrsGraph_Overlap
 Given an input Epetra_CrsGraph, a "overlapped" Epetra_CrsGraph is generated including rows associated with off processor contributions. More...
struct  EpetraExt::Perm_traits< T >
 Define some traits to make it easier to deal with template-parameters which are objects to be permuted. More...
struct  EpetraExt::Perm_traits< Epetra_CrsMatrix >
 A specialization of Perm_traits for the specific type Epetra_CrsMatrix. More...
struct  EpetraExt::Perm_traits< Epetra_CrsGraph >
 A specialization of Perm_traits for the specific type Epetra_CrsGraph. More...
struct  EpetraExt::Perm_traits< Epetra_MultiVector >
 A specialization of Perm_traits for the specific type Epetra_MultiVector. More...
class  EpetraExt::Permutation< T >
 Permutation stores and describes a permutation matrix P. More...
class  EpetraExt::CrsMatrix_Reindex
 Given an Epetra_CrsMatrix, a "reindexed" version is returned based on the new row map. More...
class  EpetraExt::LinearProblem_Reindex
 Given and input Epetra_LinearProblem, a "reindexed" version will be returned using the given NewRowMap. More...
class  EpetraExt::MultiVector_Reindex
 Given an input Epetra_MultiVector, a "reindexed" view is returned. More...
class  EpetraExt::LinearProblem_Scale
 Given an input Epetra_LinearProblem, recursive, left and right scaling are performed. More...
class  EpetraExt::CrsMatrix_SolverMap
 Given an input Epetra_CrsMatrix, the column map is checked for missing indices associated with the local rows. More...
class  EpetraExt::LinearProblem_SolverMap
 Constructs a LinearProblem with a "fixed" Column Map for the CrsMatrix. More...
class  EpetraExt::LinearProblem_StaticCondensation
class  EpetraExt::CrsMatrix_SubCopy
 Generates a sub-block view of a Epetra_CrsMatrix. More...
struct  EpetraExt::CrsGraph_SymmRCM
 Generates the symmetric RCM reordered version of a Epetra_CrsGraph. More...
class  EpetraExt::Transform< T, U >
 Base Class for all Epetra Transform Operators. More...
class  EpetraExt::StructuralTransform< T, U >
class  EpetraExt::SameTypeTransform< T >
class  EpetraExt::StructuralSameTypeTransform< T >
class  EpetraExt::InPlaceTransform< T >
class  EpetraExt::ViewTransform< T >
class  EpetraExt::Transform_Composite< T >
 Composition Class for Epetra Transform SameType Operators. More...
class  EpetraExt::CrsGraph_Transpose
 Transform to generate the explicit transpose of a Epetra_CrsGraph. More...
class  EpetraExt::RowMatrix_Transpose
 Transform to form the explicit transpose of a Epetra_RowMatrix. More...
class  EpetraExt::CrsGraph_View
 Generates a sub-block view of a Epetra_CrsGraph. More...
class  EpetraExt::CrsMatrix_View
 Generates a sub-block view of a Epetra_CrsMatrix. More...
class  EpetraExt::MultiVector_View
 Generates a sub-block view of a Epetra_MultiVector. More...
class  EpetraExt::Zoltan_CrsGraph
 Generates an Epetra_CrsGraph based on the repartitioning algorithms of Zoltan. More...
class  EpetraExt::ZoltanMpiComm
 EpetraExt::ZoltanMpiComm: The Epetra MPI Communication Class. More...
class  EpetraExt::ZoltanMpiCommData
 EpetraExt::ZoltanMpiCommData: The Epetra Mpi Communication Data Class. More...
class  EpetraExt::ZoltanMpiDistributor
 EpetraExt::ZoltanMpiDistributor: The Zoltanized Epetra MPI implementation of the Epetra_Distributor Gather/Scatter Setup Class. More...
class  EpetraExt::ZoltanQuery
 Query helper object to be used form Zoltan partitioning/ordering. More...
class  EpetraExt::DiagonalTransientModel
 Simple transient diagonal model for an implicit or explicit ODE. More...

Functions

template<typename T, typename U>
void SortContainer2 (T &firstContainer, U &secondContainer)
 Sorts a given container: deal with a problem with some STL impl.'s.
template<typename T>
bool IsSorted (T &container)
 Checks if data in a container is sorted.
double sparsedot (double *u, int *u_ind, int u_len, double *v, int *v_ind, int v_len)
 Method for internal use...
int dumpCrsMatrixStruct (const CrsMatrixStruct &M)
int mult_A_B (CrsMatrixStruct &Aview, CrsMatrixStruct &Bview, Epetra_CrsMatrix &C)
int mult_A_Btrans (CrsMatrixStruct &Aview, CrsMatrixStruct &Bview, Epetra_CrsMatrix &C)
int mult_Atrans_B (CrsMatrixStruct &Aview, CrsMatrixStruct &Bview, Epetra_CrsMatrix &C)
int mult_Atrans_Btrans (CrsMatrixStruct &Aview, CrsMatrixStruct &Bview, Epetra_CrsMatrix &C)
int import_and_extract_views (const Epetra_CrsMatrix &M, const Epetra_Map &targetMap, CrsMatrixStruct &Mview)
int distribute_list (const Epetra_Comm &Comm, int lenSendList, const int *sendList, int &maxSendLen, int *&recvList)
Epetra_Mapcreate_map_from_imported_rows (const Epetra_Map *map, int totalNumSend, int *sendRows, int numProcs, int *numSendPerProc)
int form_map_union (const Epetra_Map *map1, const Epetra_Map *map2, const Epetra_Map *&mapunion)
Epetra_Mapfind_rows_containing_cols (const Epetra_CrsMatrix &M, const Epetra_Map *colmap)
std::string EpetraExt_Version ()
int MatrixMarketFileToMap (const char *filename, const Epetra_Comm &comm, Epetra_Map *&map)
 Constructs an Epetra_BlockMap object from a Matrix Market format file.
int MatrixMarketFileToBlockMap (const char *filename, const Epetra_Comm &comm, Epetra_BlockMap *&map)
 Constructs an Epetra_BlockMap object from a Matrix Market format file.
int MatrixMarketFileToRowMap (const char *filename, const Epetra_Comm &comm, Epetra_BlockMap *&rowmap)
int MatrixMarketFileToBlockMaps (const char *filename, const Epetra_Comm &comm, Epetra_BlockMap *&rowmap, Epetra_BlockMap *&colmap, Epetra_BlockMap *&rangemap, Epetra_BlockMap *&domainmap)
 Constructs row,col,range and domain maps from a matrix-market matrix file.
int BlockMapToMatrixMarketFile (const char *filename, const Epetra_BlockMap &map, const char *mapName, const char *mapDescription, bool writeHeader)
 Writes an Epetra_BlockMap or Epetra_Map object to a Matrix Market format file.
int BlockMapToHandle (FILE *handle, const Epetra_BlockMap &map)
int writeBlockMap (FILE *handle, int length, const int *v1, const int *v2, bool doSizes)
int BlockMapToHandle (std::FILE *handle, const Epetra_BlockMap &blockMap)
 Writes an Epetra_BlockMap or Epetra_Map object to a file handle.
int writeBlockMap (std::FILE *handle, int length, const int *v1, const int *v2, bool doSizes)
int MatrixMarketFileToCrsMatrix (const char *filename, const Epetra_Comm &comm, Epetra_CrsMatrix *&A)
 Constructs an Epetra_CrsMatrix object from a Matrix Market format file, simplest version: requires matrix to be square, distributes rows evenly across processors.
int MatrixMarketFileToCrsMatrix (const char *filename, const Epetra_Map &rowMap, const Epetra_Map &rangeMap, const Epetra_Map &domainMap, Epetra_CrsMatrix *&A)
 Constructs an Epetra_CrsMatrix object from a Matrix Market format file, row, range and domain map specified; typically used for rectangular matrices.
int MatrixMarketFileToCrsMatrix (const char *filename, const Epetra_Map &rowMap, Epetra_CrsMatrix *&A)
 Constructs an Epetra_CrsMatrix object from a Matrix Market format file, only row map specified; allows user defined distribution of matrix rows, requires square matrix.
int MatrixMarketFileToCrsMatrix (const char *filename, const Epetra_Map &rowMap, const Epetra_Map &colMap, Epetra_CrsMatrix *&A)
 Constructs an Epetra_CrsMatrix object from a Matrix Market format file, both row and column map specified; this version is seldom used unless you want explicit control over column map.
int MatrixMarketFileToCrsMatrix (const char *filename, const Epetra_Map &rowMap, const Epetra_Map &colMap, const Epetra_Map &rangeMap, const Epetra_Map &domainMap, Epetra_CrsMatrix *&A)
 Constructs an Epetra_CrsMatrix object from a Matrix Market format file, row, column, range and domain map specified; this version is seldom required unless you want explicit control over column map.
int MatrixMarketFileToCrsMatrixHandle (const char *filename, const Epetra_Comm &comm, Epetra_CrsMatrix *&A, const Epetra_Map *rowMap, const Epetra_Map *colMap, const Epetra_Map *rangeMap, const Epetra_Map *domainMap)
int MatlabFileToCrsMatrix (const char *filename, const Epetra_Comm &comm, Epetra_CrsMatrix *&A)
 Constructs an Epetra_CrsMatrix object from a Matlab format file, distributes rows evenly across processors.
int mm_read_unsymmetric_sparse (const char *fname, int *M_, int *N_, int *nz_, double **val_, int **I_, int **J_)
int mm_is_valid (MM_typecode matcode)
int mm_read_banner (FILE *f, MM_typecode *matcode)
int mm_write_mtx_crd_size (FILE *f, int M, int N, int nz)
int mm_read_mtx_crd_size (FILE *f, int *M, int *N, int *nz)
int mm_read_mtx_array_size (FILE *f, int *M, int *N)
int mm_write_mtx_array_size (FILE *f, int M, int N)
int mm_read_mtx_crd_data (FILE *f, int M, int N, int nz, int I[], int J[], double val[], MM_typecode matcode)
int mm_read_mtx_crd_entry (FILE *f, int *I, int *J, double *real, double *imag, MM_typecode matcode)
int mm_read_mtx_crd (char *fname, int *M, int *N, int *nz, int **I, int **J, double **val, MM_typecode *matcode)
int mm_write_banner (FILE *f, MM_typecode matcode)
int mm_write_mtx_crd (char fname[], int M, int N, int nz, int I[], int J[], double val[], MM_typecode matcode)
void mm_typecode_to_str (MM_typecode matcode, char *buffer)
int MatrixMarketFileToMultiVector (const char *filename, const Epetra_BlockMap &map, Epetra_MultiVector *&A)
 Constructs an Epetra_MultiVector object from a Matrix Market format file.
int MultiVectorToMatlabFile (const char *filename, const Epetra_MultiVector &A)
 Writes an Epetra_MultiVector object to a file that is compatible with Matlab.
int MultiVectorToMatrixMarketFile (const char *filename, const Epetra_MultiVector &A, const char *matrixName, const char *matrixDescription, bool writeHeader)
 Writes an Epetra_MultiVector object to a Matrix Market format file.
int MultiVectorToMatlabHandle (FILE *handle, const Epetra_MultiVector &A)
int MultiVectorToMatrixMarketHandle (FILE *handle, const Epetra_MultiVector &A)
int MultiVectorToHandle (FILE *handle, const Epetra_MultiVector &A, bool mmFormat)
int writeMultiVector (FILE *handle, const Epetra_MultiVector &A, bool mmFormat)
int MultiVectorToMatrixMarketHandle (std::FILE *handle, const Epetra_MultiVector &A)
 Writes an Epetra_MultiVector object that is compatible with Matrix Market array format to a file handle.
int MultiVectorToMatlabHandle (std::FILE *handle, const Epetra_MultiVector &A)
 Writes an Epetra_MultiVector object that is compatible with Matlab to a file handle.
int MultiVectorToHandle (std::FILE *handle, const Epetra_MultiVector &A, bool mmFormat)
int writeMultiVector (std::FILE *handle, const Epetra_MultiVector &A, bool mmFormat)
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)
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)
int OperatorToHandle (std::FILE *handle, const Epetra_Operator &A)
 Writes an Epetra_Operator object to a format file that is compatible with Matlab.
int writeOperatorStrip (std::FILE *handle, const Epetra_MultiVector &y, const Epetra_Map &rootDomainMap, const Epetra_Map &rootRangeMap, int startColumn)
void readEpetraLinearSystem (const std::string &fileName, const Epetra_Comm &comm, Teuchos::RefCountPtr< Epetra_CrsMatrix > *A=NULL, Teuchos::RefCountPtr< Epetra_Map > *map=NULL, Teuchos::RefCountPtr< Epetra_Vector > *x=NULL, Teuchos::RefCountPtr< Epetra_Vector > *b=NULL, Teuchos::RefCountPtr< Epetra_Vector > *xExact=NULL)
 Read in an Epetra linear system from a file.
int RowMatrixToMatlabFile (const char *filename, const Epetra_RowMatrix &A)
 Writes an Epetra_RowMatrix object to a file that is compatible with Matlab.
int RowMatrixToMatrixMarketFile (const char *filename, const Epetra_RowMatrix &A, const char *matrixName, const char *matrixDescription, bool writeHeader)
 Writes an Epetra_RowMatrix object to a Matrix Market format file.
int RowMatrixToHandle (FILE *handle, const Epetra_RowMatrix &A)
int writeRowMatrix (FILE *handle, const Epetra_RowMatrix &A)
int RowMatrixToHandle (std::FILE *handle, const Epetra_RowMatrix &A)
 Writes an Epetra_RowMatrix object to a format file that is compatible with Matlab.
int writeRowMatrix (std::FILE *handle, const Epetra_RowMatrix &A)
std::string toString (const int &x)
std::string toString (const unsigned int &x)
std::string toString (const double &x)
int MatrixMarketFileToVector (const char *filename, const Epetra_BlockMap &map, Epetra_Vector *&A)
 Constructs an Epetra_Vector object from a Matrix Market format file.
int VectorToMatlabFile (const char *filename, const Epetra_Vector &A)
 Writes an Epetra_Vector object to a file that is compatible with Matlab.
int VectorToMatrixMarketFile (const char *filename, const Epetra_Vector &A, const char *matrixName, const char *matrixDescription, bool writeHeader)
 Writes an Epetra_Vector object to a Matrix Market format file.
int VectorToHandle (FILE *handle, const Epetra_Vector &A)
int writeVector (FILE *handle, const Epetra_Vector &A)
int VectorToHandle (std::FILE *handle, const Epetra_Vector &A)
 Writes an Epetra_Vector object to a format file that is compatible with Matlab.
int writeVector (std::FILE *handle, const Epetra_Vector &A)
std::string toString (ModelEvaluator::EDerivativeMultiVectorOrientation orientation)
 
std::string toString (ModelEvaluator::EInArgsMembers inArg)
 
std::string toString (ModelEvaluator::EOutArgsMembers outArg)
 
Teuchos::RefCountPtr< Epetra_OperatorgetLinearOp (const std::string &modelEvalDescription, const ModelEvaluator::Derivative &deriv, const std::string &derivName)
 
Teuchos::RefCountPtr< Epetra_MultiVectorgetMultiVector (const std::string &modelEvalDescription, const ModelEvaluator::Derivative &deriv, const std::string &derivName, const ModelEvaluator::EDerivativeMultiVectorOrientation mvOrientation)
 
Teuchos::RefCountPtr< Epetra_Operatorget_DfDp_op (const int l, const ModelEvaluator::OutArgs &outArgs)
 
Teuchos::RefCountPtr< Epetra_MultiVectorget_DfDp_mv (const int l, const ModelEvaluator::OutArgs &outArgs)
 
Teuchos::RefCountPtr< Epetra_MultiVectorget_DgDx_dot_mv (const int j, const ModelEvaluator::OutArgs &outArgs, const ModelEvaluator::EDerivativeMultiVectorOrientation mvOrientation)
 
Teuchos::RefCountPtr< Epetra_MultiVectorget_DgDx_mv (const int j, const ModelEvaluator::OutArgs &outArgs, const ModelEvaluator::EDerivativeMultiVectorOrientation mvOrientation)
 
Teuchos::RefCountPtr< Epetra_MultiVectorget_DgDp_mv (const int j, const int l, const ModelEvaluator::OutArgs &outArgs, const ModelEvaluator::EDerivativeMultiVectorOrientation mvOrientation)
 
void gatherModelNominalValues (const ModelEvaluator &model, ModelEvaluator::InArgs *nominalValues)
 Gather the nominal values from a model evaluator.
void gatherModelBounds (const ModelEvaluator &model, ModelEvaluator::InArgs *lowerBounds, ModelEvaluator::InArgs *upperBounds)
 Gather the lower and upper bounds from a model evaluator.
void scaleModelVars (const ModelEvaluator::InArgs &origVars, const ModelEvaluator::InArgs &varScalings, ModelEvaluator::InArgs *scaledVars, Teuchos::FancyOStream *out=0, Teuchos::EVerbosityLevel verbLevel=Teuchos::VERB_LOW)
 Scale the original unscaled variables into the scaled variables.
void scaleModelBounds (const ModelEvaluator::InArgs &origLowerBounds, const ModelEvaluator::InArgs &origUpperBounds, const double infBnd, const ModelEvaluator::InArgs &varScalings, ModelEvaluator::InArgs *scaledLowerBounds, ModelEvaluator::InArgs *scaledUpperBounds, Teuchos::FancyOStream *out=0, Teuchos::EVerbosityLevel verbLevel=Teuchos::VERB_LOW)
 Scale the lower and upper model variable bounds.
void unscaleModelVars (const ModelEvaluator::InArgs &scaledVars, const ModelEvaluator::InArgs &varScalings, ModelEvaluator::InArgs *origVars, Teuchos::FancyOStream *out=0, Teuchos::EVerbosityLevel verbLevel=Teuchos::VERB_LOW)
 Unscale the scaled variables.
void scaleModelFuncs (const ModelEvaluator::OutArgs &origFuncs, const ModelEvaluator::InArgs &varScalings, const ModelEvaluator::OutArgs &funcScalings, ModelEvaluator::OutArgs *scaledFuncs, bool *allFuncsWhereScaled, Teuchos::FancyOStream *out=0, Teuchos::EVerbosityLevel verbLevel=Teuchos::VERB_LOW)
 Scale the output functions and their derivative objects.
Teuchos::RefCountPtr< const
Epetra_Vector
createInverseModelScalingVector (Teuchos::RefCountPtr< const Epetra_Vector > const &scalingVector)
 Create an inverse scaling vector.
void scaleModelVarsGivenInverseScaling (const Epetra_Vector &origVars, const Epetra_Vector &invVarScaling, Epetra_Vector *scaledVars)
 Scale a vector given its inverse scaling vector.
void scaleModelVarBoundsGivenInverseScaling (const Epetra_Vector &origLowerBounds, const Epetra_Vector &origUpperBounds, const double infBnd, const Epetra_Vector &invVarScaling, Epetra_Vector *scaledLowerBounds, Epetra_Vector *scaledUpperBounds)
 Scale the model variable bounds.
void unscaleModelVarsGivenInverseScaling (const Epetra_Vector &origVars, const Epetra_Vector &invVarScaling, Epetra_Vector *scaledVars)
 Unscale a vector given its inverse scaling vector.
void scaleModelFuncGivenForwardScaling (const Epetra_Vector &fwdFuncScaling, Epetra_Vector *funcs)
 Scale (in place) an output function vector given its forward scaling vector.
void scaleModelFuncFirstDerivOp (const Epetra_Vector *invVarScaling, const Epetra_Vector *fwdFuncScaling, Epetra_Operator *funcDerivOp, bool *didScaling)
 Scale (in place) an output first-order function derivative object represented as an Epetra_Operator given its function and variable scaling.
void scaleModelFuncFirstDeriv (const ModelEvaluator::Derivative &origFuncDeriv, const Epetra_Vector *invVarScaling, const Epetra_Vector *fwdFuncScaling, ModelEvaluator::Derivative *scaledFuncDeriv, bool *didScaling)
 Scale (in place) an output first-order function derivative object given its function and variable scaling.


Detailed Description

EpetraExt::BlockCrsMatrix: A class for constructing a distributed block matrix.

The EpetraExt::BlockCrsMatrix allows construction of a block matrix made up of Epetra_CrsMatrix blocks as well as access to the full systems as a Epetra_CrsMatrix. It derives from and extends the Epetra_CrsMatrix class

Constructing EpetraExt::BlockCrsMatrix objects


Function Documentation

template<typename T, typename U>
void SortContainer2 T &  firstContainer,
U &  secondContainer
 

Sorts a given container: deal with a problem with some STL impl.'s.

Definition at line 158 of file EpetraExt_Directory.h.

template<typename T>
bool IsSorted T &  container  ) 
 

Checks if data in a container is sorted.

Definition at line 189 of file EpetraExt_Directory.h.

double EpetraExt::sparsedot double *  u,
int *  u_ind,
int  u_len,
double *  v,
int *  v_ind,
int  v_len
 

Method for internal use...

sparsedot forms a dot-product between two sparsely-populated 'vectors'. Important assumption: assumes the indices in u_ind and v_ind are sorted.

Definition at line 55 of file EpetraExt_MatrixMatrix.cpp.

int dumpCrsMatrixStruct const CrsMatrixStruct &  M  ) 
 

Definition at line 122 of file EpetraExt_MatrixMatrix.cpp.

int mult_A_B CrsMatrixStruct &  Aview,
CrsMatrixStruct &  Bview,
Epetra_CrsMatrix C
 

Definition at line 142 of file EpetraExt_MatrixMatrix.cpp.

int mult_A_Btrans CrsMatrixStruct &  Aview,
CrsMatrixStruct &  Bview,
Epetra_CrsMatrix C
 

Definition at line 254 of file EpetraExt_MatrixMatrix.cpp.

int mult_Atrans_B CrsMatrixStruct &  Aview,
CrsMatrixStruct &  Bview,
Epetra_CrsMatrix C
 

Definition at line 454 of file EpetraExt_MatrixMatrix.cpp.

int mult_Atrans_Btrans CrsMatrixStruct &  Aview,
CrsMatrixStruct &  Bview,
Epetra_CrsMatrix C
 

Definition at line 589 of file EpetraExt_MatrixMatrix.cpp.

int import_and_extract_views const Epetra_CrsMatrix M,
const Epetra_Map targetMap,
CrsMatrixStruct &  Mview
 

Definition at line 729 of file EpetraExt_MatrixMatrix.cpp.

int distribute_list const Epetra_Comm Comm,
int  lenSendList,
const int *  sendList,
int &  maxSendLen,
int *&  recvList
 

Definition at line 844 of file EpetraExt_MatrixMatrix.cpp.

Epetra_Map* create_map_from_imported_rows const Epetra_Map map,
int  totalNumSend,
int *  sendRows,
int  numProcs,
int *  numSendPerProc
 

Definition at line 865 of file EpetraExt_MatrixMatrix.cpp.

int form_map_union const Epetra_Map map1,
const Epetra_Map map2,
const Epetra_Map *&  mapunion
 

Definition at line 913 of file EpetraExt_MatrixMatrix.cpp.

Epetra_Map* find_rows_containing_cols const Epetra_CrsMatrix M,
const Epetra_Map colmap
 

Definition at line 974 of file EpetraExt_MatrixMatrix.cpp.

std::string EpetraExt_Version  ) 
 

Definition at line 36 of file EpetraExt_Version.h.

int EpetraExt::MatrixMarketFileToMap const char *  filename,
const Epetra_Comm comm,
Epetra_Map *&  map
 

Constructs an Epetra_BlockMap object from a Matrix Market format file.

This function constructs an Epetra_BlockMap or Epetra_Map object by reading a Matrix Market file. If the file was created using the EpetraExt::BlockMapOut functions, special information was encoded in the comment field of this map that allows for identical reproduction of the map, including distribution across processors and element size information. If the same of processors is being used to create the object as were used to write it, the object will be an exact reproduction of the original. Otherwise, a uniform distribution of the GIDs will be created.

The first column of the input file will must be the list of GIDs in the map. If the block map has non-uniform sizes, a second column must contain the element sizes.

Parameters:
filename (In) A filename, including path if desired. If a file with this name already exists, it will be deleted. On exit, this file will contained any requested header information followed by the map GIDs. A second column may be present if the BlockMap has nonuniform sizes.
comm (In) An Epetra_Comm object describing the parallel machine.
map (Out) An Epetra_Map object constructed from file contents.
Warning:
User must delete!!.
Returns:
Returns 0 if no error, -1 if any problems with file system, -2 if file contained nontrivial