1#ifndef included_AMP_test_StridedVectorFactory
2#define included_AMP_test_StridedVectorFactory
4#include "AMP/utils/UnitTest.h"
5#include "AMP/vectors/MultiVector.h"
6#include "AMP/vectors/VectorSelector.h"
7#include "AMP/vectors/testHelpers/VectorTests.h"
24 auto vec_select = vec->select( criterion );
25 size_t N1 = vec->getGlobalSize();
26 size_t N2 = vec_select->getGlobalSize();
30 std::string
name()
const override {
return "StridedVectorFactory<" +
d_factory->name() +
">"; }
std::shared_ptr< const VectorFactory > d_factory
std::string name() const override
AMP::LinearAlgebra::Vector::shared_ptr getVector() const override
StridedVectorFactory(std::shared_ptr< const VectorFactory > factory)
Create a subset based on a stride in the vector.
std::shared_ptr< Vector > shared_ptr
Shorthand for shared pointer to Vector.
#define AMP_ASSERT(EXP)
Assert error.