42 #ifndef THYRA_MULTI_VECTOR_ALLOCATOR_HPP
43 #define THYRA_MULTI_VECTOR_ALLOCATOR_HPP
45 #include "Thyra_VectorSpaceBase.hpp"
46 #include "Teuchos_Assert.hpp"
53 template<
class Scalar>
62 : vs_(vs), numMembers_(numMembers)
69 const ptr_t allocate()
const {
return vs_->createMembers(numMembers_); }
77 #endif // THYRA_MULTI_VECTOR_ALLOCATOR_HPP
Teuchos::RCP< MultiVectorBase< Scalar > > ptr_t
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Allocator class to be used with Teuchos::AbstractFactoryStd to create MultiVectorBase objects of a gi...
Abstract interface for objects that represent a space for vectors.
const ptr_t allocate() const
MultiVectorAllocator(const Teuchos::RCP< const VectorSpaceBase< Scalar > > &vs, int numMembers)