Xped
Loading...
Searching...
No Matches
VectorInterface.hpp
Go to the documentation of this file.
1#ifndef VECTORINTERFACE_H_
2#define VECTORINTERFACE_H_
3
4namespace Xped {
5
7{};
8
10{};
11
13{};
14
15#ifdef XPED_USE_ARRAY_VECTOR_LIB
16# define M_VECTORLIB ArrayVectorLib
17#elif defined(XPED_USE_EIGEN_VECTOR_LIB)
18# define M_VECTORLIB EigenVectorLib
19#elif defined(XPED_USE_CYCLOPS_VECTORLIB)
20# define M_VECTORLIB CyclopsVectorLib
21#endif
22
23// template <typename Library>
24// struct VectorInterface
25// {
26// constructor (elems)
27// constructor_with_zeros (elems)
28
29// resize(elems)
30// length()
31
32// initialization
33// setZero
34// setRandom
35// setConstant
36// setIdentity
37
38// sub(off,elems) l and r value
39// print
40
41// operations +, - , *, coefficient-wise
42// };
43
44} // namespace Xped
45
46#if defined XPED_USE_EIGEN_VECTOR_LIB
47# define EIGEN_DENSEBASE_PLUGIN "Xped/Util/EigenPlugins.hpp"
49#elif defined XPED_USE_ARRAY_VECTOR_LIB
50# include "Xped/Interfaces/VectorInterface_Array_impl.hpp"
51#elif defined XPED_USE_CYCLOPS_VECTOR_LIB
53#else
54# error "You specified an unsupported plain vector library."
55#endif
56
57#endif
Definition: bench.cpp:62
Definition: VectorInterface.hpp:10
Definition: VectorInterface.hpp:13
Definition: VectorInterface.hpp:7