42 template <
typename coeff_type>
50 template <
typename coeff_type>
54 coeff_(map_->NumMyElements())
58 template <
typename coeff_type>
61 const typename traits_type::cloner_type& cloner) :
63 coeff_(map_->NumMyElements())
67 coeff_[i] = cloner.clone(i);
70 template <
typename coeff_type>
78 template <
typename coeff_type>
84 template <
typename coeff_type>
96 template <
typename coeff_type>
99 reset(
const Teuchos::RCP<const Epetra_BlockMap>& theMap)
106 template <
typename coeff_type>
109 reset(
const Teuchos::RCP<const Epetra_BlockMap>& theMap,
110 const typename traits_type::cloner_type& cloner)
116 coeff_[i] = cloner.clone(i);
119 template <
typename coeff_type>
122 resize(
const Teuchos::RCP<const Epetra_BlockMap>& theMap)
125 coeff_.resize(map_->NumMyElements());
128 template <
typename coeff_type>
136 template <
typename coeff_type>
141 return coeff_.size();
144 template <
typename coeff_type>
145 Teuchos::RCP<const Epetra_BlockMap>
152 template <
typename coeff_type>
153 const Teuchos::Array<Teuchos::RCP<coeff_type> >&
160 template <
typename coeff_type>
161 Teuchos::Array<Teuchos::RCP<coeff_type> >&
168 template <
typename coeff_type>
169 Teuchos::RCP<coeff_type>
176 template <
typename coeff_type>
177 Teuchos::RCP<const coeff_type>
184 template <
typename coeff_type>
192 template <
typename coeff_type>
200 template <
typename coeff_type>
208 template <
typename coeff_type>
213 return map_->MyGID(i);
216 template <
typename coeff_type>
223 traits_type::init(*(coeff_[i]),
val);
226 template <
typename coeff_type>
229 print(std::ostream& os)
const
231 Teuchos::Array<ordinal_type> trm;
233 os <<
"Stokhos::ProductContainer of global size " << map_->NumGlobalElements()
234 <<
", local size " << sz <<
":" << std::endl;
236 os <<
"Term " << map_->GID(i) <<
":" << std::endl;
237 traits_type::print(os, *(coeff_[i]));