104 this->basis_ = new_basis;
118 product_comm, num_vectors);
119 this->basis_ = new_basis;
126 int lid = this->map_->LID(0);
127 v.Scale(1.0, *(this->coeff_[lid]));
137 for (
int i=1; i<this->size(); i++) {
138 i_gid = this->map_->GID(i);
139 v.Multiply(nrm2[i_gid], *(this->coeff_[i]), *(this->coeff_[i]), 1.0);
149 for (
int j=0;
j<v.NumVectors();
j++)
150 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.