1#ifndef VECTOR_INTERFACE_EIGEN_IMPL_H_
2#define VECTOR_INTERFACE_EIGEN_IMPL_H_
13 template <
typename Scalar>
14 using VType = Eigen::Array<Scalar, Eigen::Dynamic, 1>;
19 template <
typename Scalar>
22 template <
typename Scalar>
25 template <
typename Scalar>
29 template <
typename Scalar>
32 template <
typename Scalar>
35 template <
typename Scalar>
39 template <
typename Scalar>
42 template <
typename Scalar>
46 template <
typename Scalar>
47 static const Eigen::CwiseBinaryOp<Eigen::internal::scalar_difference_op<Scalar, Scalar>,
const VType<Scalar>,
const VType<Scalar>>
50 template <
typename Scalar>
55 template <
typename Scalar>
58 template <
typename Scalar>
61 template <
typename Scalar>
67#ifndef XPED_COMPILED_LIB
XpedWorld & getUniverse()
Definition: Mpi.hpp:49
static void setConstant(VType< Scalar > &V, const Scalar &val)
static void vec_to_stdvec(VT &&V, std::vector< Scalar > &vec)
Definition: VectorInterface_Cyclops_impl.cpp:98
static VType< Scalar > construct(const VIndextype &elems, CTF::World &world)
Definition: VectorInterface_Cyclops_impl.cpp:15
static VType< Scalar > construct_with_zero(const VIndextype &elems, CTF::World &world)
Definition: VectorInterface_Cyclops_impl.cpp:21
static VIndextype length(const VType< Scalar > &V)
static void setRandom(VType< Scalar > &V)
static void setZero(VType< Scalar > &V)
static const Eigen::CwiseBinaryOp< Eigen::internal::scalar_sum_op< Scalar, Scalar >, const VType< Scalar >, const VType< Scalar > > sum(const VType< Scalar > &V1, const VType< Scalar > &V2)
Definition: VectorInterface_Eigen_impl.cpp:60
static const Eigen::CwiseBinaryOp< Eigen::internal::scalar_difference_op< Scalar, Scalar >, const VType< Scalar >, const VType< Scalar > > substract(const VType< Scalar > &V1, const VType< Scalar > &V2)
Definition: VectorInterface_Eigen_impl.cpp:67
int VIndextype
Definition: VectorInterface_Cyclops_impl.hpp:14
static std::string print(const VType< Scalar > &V)
Eigen::Index VIndextype
Definition: VectorInterface_Eigen_impl.hpp:16
static VType< Scalar > scale(VT1 &&V, const Scalar &val)
Definition: VectorInterface_Cyclops_impl.cpp:75
CTF::Vector< Scalar > VType
Definition: VectorInterface_Cyclops_impl.hpp:12
static VType< Scalar > sub(const VType< Scalar > &V, const VIndextype &off, const VIndextype &elems)
Definition: VectorInterface_Cyclops_impl.cpp:84
static void resize(VType< Scalar > &V, const VIndextype &new_elems)