ML  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Namespaces | Functions
MLAPI_Operator_Utils.h File Reference

Suite of utilities for MLAPI::Operator objects. More...

#include "ml_common.h"
#include "ml_include.h"
#include <iostream>
#include "ml_operator.h"
#include "ml_epetra.h"
#include "ml_amesos.h"
#include "ml_epetra_utils.h"
#include "ml_amesos_wrap.h"
#include "ml_anasazi.h"
#include "Teuchos_ParameterList.hpp"
#include "Teuchos_RefCountPtr.hpp"
#include "MLAPI_Error.h"
#include "MLAPI_Space.h"
#include "MLAPI_MultiVector.h"
#include "MLAPI_Operator.h"
Include dependency graph for MLAPI_Operator_Utils.h:
This graph shows which files directly or indirectly include this file:

Namespaces

 Teuchos
 
 MLAPI
 MLAPI: Default namespace for all MLAPI objects and functions.
 

Functions

Operator MLAPI::GetRAP (const Operator &R, const Operator &A, const Operator &P)
 Performs a triple matrix-matrix product, res = R * A *P.
 
Operator MLAPI::GetTranspose (const Operator &A, const bool byrow=true)
 Returns a newly created transpose of A.
 
Operator MLAPI::GetIdentity (const Space &DomainSpace, const Space &RangeSpace)
 Returns the identity matrix.
 
MultiVector MLAPI::GetDiagonal (const Operator &A)
 Returns a vector containing the diagonal elements of A.
 
MultiVector MLAPI::GetDiagonal (const Operator &A, const int offset)
 Returns a vector containing the diagonal elements of A.
 
Operator MLAPI::GetDiagonal (const MultiVector &D)
 Returns a newly created operator, containing D on the diagonal.
 
Operator MLAPI::GetJacobiIterationOperator (const Operator &Amat, double Damping)
 Returns an operator defined as (I - Damping A).
 
Operator MLAPI::GetPtent1D (const MultiVector &D, const int offset=0)
 Returns a newly created operator, containing D on the diagonal.
 
int MLAPI::ML_Operator_Add2 (ML_Operator *A, ML_Operator *B, ML_Operator *C, int matrix_type, double scalarA, double scalarB)
 
void MLAPI::AnalyzeCheap (const Operator &A)
 Performs a cheap analysis of the properties of the input operator.
 
void MLAPI::PrintSparsity (const Operator &A, int NumPDEEquations=1)
 Prints on file the sparsity structure of input operator.
 
Operator MLAPI::GetScaledOperator (const Operator &A, const double alpha)
 Multiply A by a double value, alpha.
 
Operator MLAPI::Duplicate (const Operator &A)
 Duplicates a given operator.
 

Detailed Description

Suite of utilities for MLAPI::Operator objects.

Author
Marzio Sala, D-INFK/ETHZ.
Date
Last updated on Mar-06.