57 *(epetraCijk_->getStochasticGraph()),
61 epetraCijk(epetraCijk_),
62 domain_sg_map(domain_sg_map_),
63 range_sg_map(range_sg_map_),
64 Cijk(epetraCijk->getParallelCijk()),
68 only_use_linear(false)
70 scale_op = params->
get(
"Scale Operator by Inverse Basis Norms",
true);
85 #ifdef STOKHOS_TEUCHOS_TIME_MONITOR
97 if (!include_mean && index(k_begin) == 0)
99 if (only_use_linear) {
100 int dim = sg_basis->dimension();
101 k_end = Cijk->find_k(dim+1);
112 j_it != Cijk->j_end(k_it); ++j_it) {
113 int j = epetraCijk->GCID(index(j_it));
115 i_it != Cijk->i_end(j_it); ++i_it) {
116 int i = epetraCijk->GRID(index(i_it));
117 double c = value(i_it);
120 this->SumIntoGlobalBlock(c, *block, i, j);
125 this->FillComplete(*domain_sg_map, *range_sg_map);
146 #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.