136 this->basis_ = new_basis;
150 product_comm, num_vectors);
151 this->basis_ = new_basis;
158 int lid = this->map_->LID(0);
159 v.Scale(1.0, *(this->coeff_[lid]));
169 for (
int i=1; i<this->size(); i++) {
170 i_gid = this->map_->GID(i);
171 v.Multiply(nrm2[i_gid], *(this->coeff_[i]), *(this->coeff_[i]), 1.0);
181 for (
int j=0;
j<v.NumVectors();
j++)
182 for (
int i=0; i<v.MyLength(); i++)
KOKKOS_INLINE_FUNCTION PCE< Storage > sqrt(const PCE< Storage > &a)
void computeMean(Epetra_MultiVector &v) const
Compute mean.
virtual ~EpetraMultiVectorOrthogPoly()
Destructor.
EpetraMultiVectorOrthogPoly & operator=(const EpetraMultiVectorOrthogPoly &v)
Assignment.
void computeStandardDeviation(Epetra_MultiVector &v) const
Compute standard deviation.
void reset(const Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > &basis, const Teuchos::RCP< const Epetra_BlockMap > &block_map, const Teuchos::RCP< const Epetra_BlockMap > &coeff_map, const Teuchos::RCP< const EpetraExt::MultiComm > &product_comm, int num_vectors)
Reset to a new basis.
ProductEpetraMultiVector & operator=(const ProductEpetraMultiVector &v)
Assignment.
void computeVariance(Epetra_MultiVector &v) const
Compute variance.
void reset(const Teuchos::RCP< const Epetra_BlockMap > &block_map, const Teuchos::RCP< const Epetra_BlockMap > &coeff_map, const Teuchos::RCP< const EpetraExt::MultiComm > &product_comm, int num_vectors)
Reset to a new size.
A container class storing products of Epetra_MultiVector's.
Teuchos::RCP< const Stokhos::OrthogPolyBasis< ordinal_type, value_type > > basis_
Basis.
A product (in the mathematical sense) container class whose coefficients are vectors, operators, or in general any type that would have an expensive copy constructor.
A container class storing an orthogonal polynomial whose coefficients are vectors, operators, or in general any type that would have an expensive copy constructor.
EpetraMultiVectorOrthogPoly()
Constructor with no basis.
A container class storing an orthogonal polynomial whose coefficients are vectors, operators, or in general any type that would have an expensive copy constructor.