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