|
Stokhos Package Browser (Single Doxygen Collection)
Version of the Day
|
Go to the documentation of this file.
42 #ifndef STOKHOS_PRODUCT_CONTAINER_HPP
43 #define STOKHOS_PRODUCT_CONTAINER_HPP
60 template <
typename coeff_type>
168 bool myGID(
int i)
const;
171 std::ostream&
print(std::ostream& os)
const;
183 template <
typename coeff_type>
186 return vec.
print(os);
194 #endif // STOKHOS_PRODUCT_VECTOR_HPP
ProductContainer & operator=(const ProductContainer &)
Assignment.
coeff_type & operator[](ordinal_type i)
Array access.
Teuchos::RCP< const Epetra_BlockMap > map_
Container map.
void resize(const Teuchos::RCP< const Epetra_BlockMap > &map)
Resize to map map.
Teuchos::Array< Teuchos::RCP< coeff_type > > coeff_
Array of polynomial coefficients.
Stokhos::ProductContainerTraits< coeff_type > traits_type
Typename of traits.
virtual ~ProductContainer()
Destructor.
traits_type::ordinal_type ordinal_type
Typename of ordinals.
std::ostream & operator<<(std::ostream &os, const ProductContainer< coeff_type > &vec)
Teuchos::RCP< coeff_type > getCoeffPtr(ordinal_type i)
Return ref-count pointer to coefficient i.
void setCoeffPtr(ordinal_type i, const Teuchos::RCP< coeff_type > &c)
Set coefficient i to c.
Cloner for Epetra_Vector coefficients.
bool myGID(int i) const
Return whether global index i resides on this processor.
Base traits definition for ProductContainer.
std::ostream & print(std::ostream &os) const
Print polynomial.
void init(const value_type &val)
Initialize coefficients.
void reserve(ordinal_type sz)
Reserve space for a size sz container.
Top-level namespace for Stokhos classes and functions.
A product (in the mathematical sense) container class whose coefficients are vectors,...
ordinal_type size() const
Return size.
const Teuchos::Array< Teuchos::RCP< coeff_type > > & getCoefficients() const
Return array of coefficients.
traits_type::value_type value_type
Typename of values.
double value_type
Typename of values.
void reset(const Teuchos::RCP< const Epetra_BlockMap > &map)
Resize to new map map.
int ordinal_type
Typename of ordinals.
Teuchos::RCP< const Epetra_BlockMap > map() const
Return container map.
ProductContainer()
Default constructor.