Xped
Loading...
Searching...
No Matches
Xped::VectorInterface Struct Reference

#include <VectorInterface_Cyclops_impl.hpp>

Inheritance diagram for Xped::VectorInterface:

Public Types

template<typename Scalar >
using VType = CTF::Vector< Scalar >
 
typedef int VIndextype
 
template<typename Scalar >
using VType = Eigen::Array< Scalar, Eigen::Dynamic, 1 >
 
typedef Eigen::Index VIndextype
 

Static Public Member Functions

template<typename Scalar >
static VType< Scalar > construct (const VIndextype &elems, CTF::World &world)
 
template<typename Scalar >
static VType< Scalar > construct_with_zero (const VIndextype &elems, CTF::World &world)
 
template<typename Scalar >
static void resize (VType< Scalar > &V, const VIndextype &new_elems)
 
template<typename Scalar >
static void setZero (VType< Scalar > &V)
 
template<typename Scalar >
static void setRandom (VType< Scalar > &V)
 
template<typename Scalar >
static void setConstant (VType< Scalar > &V, const Scalar &val)
 
template<typename Scalar >
static VIndextype length (const VType< Scalar > &V)
 
template<typename Scalar , typename VT1 >
static VType< Scalar > scale (VT1 &&V, const Scalar &val)
 
template<typename Scalar >
static VType< Scalar > sub (const VType< Scalar > &V, const VIndextype &off, const VIndextype &elems)
 
template<typename Scalar >
static std::string print (const VType< Scalar > &V)
 
template<typename Scalar , typename VT >
static void vec_to_stdvec (VT &&V, std::vector< Scalar > &vec)
 
template<typename Scalar >
static VType< Scalar > construct (const VIndextype &elems, const mpi::XpedWorld &=mpi::getUniverse())
 
template<typename Scalar >
static VType< Scalar > construct_with_zero (const VIndextype &elems, const mpi::XpedWorld &=mpi::getUniverse())
 
template<typename Scalar >
static void resize (VType< Scalar > &V, const VIndextype &new_elems)
 
template<typename Scalar >
static void setZero (VType< Scalar > &V)
 
template<typename Scalar >
static void setRandom (VType< Scalar > &V)
 
template<typename Scalar >
static void setConstant (VType< Scalar > &V, const Scalar &val)
 
template<typename Scalar >
static VIndextype length (const VType< Scalar > &V)
 
template<typename Scalar >
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)
 
template<typename Scalar >
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)
 
template<typename Scalar >
static const Eigen::CwiseBinaryOp< Eigen::internal::scalar_product_op< Scalar, Scalar >, Scalar, const VType< Scalar > > scale (const VType< Scalar > &V, const Scalar &val)
 
template<typename Scalar >
static const Eigen::VectorBlock< const VType< Scalar > > sub (const VType< Scalar > &V, const VIndextype &off, const VIndextype &elems)
 
template<typename Scalar >
static std::string print (const VType< Scalar > &V)
 
template<typename Scalar >
static void vec_to_stdvec (const VType< Scalar > &V, std::vector< Scalar > &vec)
 

Member Typedef Documentation

◆ VIndextype [1/2]

◆ VIndextype [2/2]

typedef Eigen::Index Xped::VectorInterface::VIndextype

◆ VType [1/2]

template<typename Scalar >
using Xped::VectorInterface::VType = CTF::Vector<Scalar>

◆ VType [2/2]

template<typename Scalar >
using Xped::VectorInterface::VType = Eigen::Array<Scalar, Eigen::Dynamic, 1>

Member Function Documentation

◆ construct() [1/2]

template<typename Scalar >
VType< Scalar > Xped::VectorInterface::construct ( const VIndextype elems,
const mpi::XpedWorld = mpi::getUniverse() 
)
static

◆ construct() [2/2]

template<typename Scalar >
VType< Scalar > Xped::VectorInterface::construct ( const VIndextype elems,
CTF::World &  world 
)
static

◆ construct_with_zero() [1/2]

template<typename Scalar >
VType< Scalar > Xped::VectorInterface::construct_with_zero ( const VIndextype elems,
const mpi::XpedWorld = mpi::getUniverse() 
)
static

◆ construct_with_zero() [2/2]

template<typename Scalar >
VType< Scalar > Xped::VectorInterface::construct_with_zero ( const VIndextype elems,
CTF::World &  world 
)
static

◆ length() [1/2]

template<typename Scalar >
VIndextype Xped::VectorInterface::length ( const VType< Scalar > &  V)
static

◆ length() [2/2]

template<typename Scalar >
static VIndextype Xped::VectorInterface::length ( const VType< Scalar > &  V)
static

◆ print() [1/2]

template<typename Scalar >
std::string Xped::VectorInterface::print ( const VType< Scalar > &  V)
static

◆ print() [2/2]

template<typename Scalar >
static std::string Xped::VectorInterface::print ( const VType< Scalar > &  V)
static

◆ resize() [1/2]

template<typename Scalar >
void Xped::VectorInterface::resize ( VType< Scalar > &  V,
const VIndextype new_elems 
)
static

◆ resize() [2/2]

template<typename Scalar >
static void Xped::VectorInterface::resize ( VType< Scalar > &  V,
const VIndextype new_elems 
)
static

◆ scale() [1/2]

template<typename Scalar >
const Eigen::CwiseBinaryOp< Eigen::internal::scalar_product_op< Scalar, Scalar >, Scalar, const VType< Scalar > > Xped::VectorInterface::scale ( const VType< Scalar > &  V,
const Scalar &  val 
)
static

◆ scale() [2/2]

template<typename Scalar , typename VT1 >
VType< Scalar > Xped::VectorInterface::scale ( VT1 &&  V,
const Scalar &  val 
)
static

◆ setConstant() [1/2]

template<typename Scalar >
void Xped::VectorInterface::setConstant ( VType< Scalar > &  V,
const Scalar &  val 
)
static

◆ setConstant() [2/2]

template<typename Scalar >
static void Xped::VectorInterface::setConstant ( VType< Scalar > &  V,
const Scalar &  val 
)
static

◆ setRandom() [1/2]

template<typename Scalar >
void Xped::VectorInterface::setRandom ( VType< Scalar > &  V)
static

◆ setRandom() [2/2]

template<typename Scalar >
static void Xped::VectorInterface::setRandom ( VType< Scalar > &  V)
static

◆ setZero() [1/2]

template<typename Scalar >
void Xped::VectorInterface::setZero ( VType< Scalar > &  V)
static

◆ setZero() [2/2]

template<typename Scalar >
static void Xped::VectorInterface::setZero ( VType< Scalar > &  V)
static

◆ sub() [1/2]

template<typename Scalar >
VType< Scalar > Xped::VectorInterface::sub ( const VType< Scalar > &  V,
const VIndextype off,
const VIndextype elems 
)
static

◆ sub() [2/2]

template<typename Scalar >
const Eigen::VectorBlock< const VType< Scalar > > Xped::VectorInterface::sub ( const VType< Scalar > &  V,
const VIndextype off,
const VIndextype elems 
)
static

◆ substract()

template<typename Scalar >
const Eigen::CwiseBinaryOp< Eigen::internal::scalar_difference_op< Scalar, Scalar >, const VType< Scalar >, const VType< Scalar > > Xped::VectorInterface::substract ( const VType< Scalar > &  V1,
const VType< Scalar > &  V2 
)
static

◆ sum()

template<typename Scalar >
const Eigen::CwiseBinaryOp< Eigen::internal::scalar_sum_op< Scalar, Scalar >, const VType< Scalar >, const VType< Scalar > > Xped::VectorInterface::sum ( const VType< Scalar > &  V1,
const VType< Scalar > &  V2 
)
static

◆ vec_to_stdvec() [1/2]

template<typename Scalar >
void Xped::VectorInterface::vec_to_stdvec ( const VType< Scalar > &  V,
std::vector< Scalar > &  vec 
)
static

◆ vec_to_stdvec() [2/2]

template<typename Scalar , typename VT >
void Xped::VectorInterface::vec_to_stdvec ( VT &&  V,
std::vector< Scalar > &  vec 
)
static

The documentation for this struct was generated from the following files: