23 *(epetraCijk_->getStochasticGraph()),
27 epetraCijk(epetraCijk_),
28 domain_sg_map(domain_sg_map_),
29 range_sg_map(range_sg_map_),
30 Cijk(epetraCijk->getParallelCijk()),
34 only_use_linear(false)
36 scale_op = params->
get(
"Scale Operator by Inverse Basis Norms",
true);
51 #ifdef STOKHOS_TEUCHOS_TIME_MONITOR
63 if (!include_mean && index(k_begin) == 0)
65 if (only_use_linear) {
66 int dim = sg_basis->dimension();
67 k_end = Cijk->find_k(dim+1);
78 j_it != Cijk->j_end(k_it); ++j_it) {
79 int j = epetraCijk->GCID(index(j_it));
81 i_it != Cijk->i_end(j_it); ++i_it) {
82 int i = epetraCijk->GRID(index(i_it));
83 double c = value(i_it);
86 this->SumIntoGlobalBlock(c, *block, i, j);
91 this->FillComplete(*domain_sg_map, *range_sg_map);
112 #ifdef STOKHOS_TEUCHOS_TIME_MONITOR
#define TEUCHOS_FUNC_TIME_MONITOR(FUNCNAME)
virtual void setupOperator(const Teuchos::RCP< Stokhos::EpetraOperatorOrthogPoly > &poly)
Setup operator.
T & get(ParameterList &l, const std::string &name)
int Apply(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
virtual Teuchos::RCP< Stokhos::EpetraOperatorOrthogPoly > getSGPolynomial()
Get SG polynomial.
Bi-directional iterator for traversing a sparse array.
bool only_use_linear
Flag indicating whether to only use linear terms.
virtual int Apply(const Epetra_MultiVector &Input, Epetra_MultiVector &Result) const
Wrap Apply() to add a timer.
bool scale_op
Flag indicating whether operator be scaled with <^2>
bool include_mean
Flag indicating whether to include mean term.
CRS matrix of dense blocks.
FullyAssembledOperator(const Teuchos::RCP< const EpetraExt::MultiComm > &sg_comm, const Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > &sg_basis, const Teuchos::RCP< const Stokhos::EpetraSparse3Tensor > &epetraCijk, const Teuchos::RCP< const Epetra_CrsGraph > &base_graph, const Teuchos::RCP< const Epetra_Map > &domain_sg_map, const Teuchos::RCP< const Epetra_Map > &range_sg_map, const Teuchos::RCP< Teuchos::ParameterList > ¶ms)
Constructor.
virtual ~FullyAssembledOperator()
Destructor.