KASKADE 7 development version
Static Public Member Functions | Static Public Attributes | List of all members
Kaskade::Bridge::VectorTraits< VectorImpl > Struct Template Reference

Traits class to unify the assignment of std::vector to a Vector. More...

#include <newton_bridge.hh>

Detailed Description

template<class VectorImpl>
struct Kaskade::Bridge::VectorTraits< VectorImpl >

Traits class to unify the assignment of std::vector to a Vector.

Definition at line 53 of file newton_bridge.hh.

Static Public Member Functions

static void read (VectorImpl &out, std::vector< double > const &in, int vbegin, int vend)
 
static void write (VectorImpl const &in, std::vector< double > &out, int vbegin, int vend)
 
static void writeToFile (std::string const &name, bool append, VectorImpl const &x)
 
static void print (VectorImpl const &out, std::string const &message)
 
static std::string getRole (const VectorImpl &out, int component)
 
static void scale (VectorImpl &out, std::vector< double > const &lambda)
 

Static Public Attributes

static const int nComponents = 1
 

Member Function Documentation

◆ getRole()

template<class VectorImpl >
static std::string Kaskade::Bridge::VectorTraits< VectorImpl >::getRole ( const VectorImpl &  out,
int  component 
)
inlinestatic

Definition at line 95 of file newton_bridge.hh.

Referenced by Kaskade::Bridge::Vector< Implementation >::getRole().

◆ print()

template<class VectorImpl >
static void Kaskade::Bridge::VectorTraits< VectorImpl >::print ( VectorImpl const &  out,
std::string const &  message 
)
inlinestatic

Definition at line 87 of file newton_bridge.hh.

Referenced by Kaskade::Bridge::Vector< Implementation >::print().

◆ read()

template<class VectorImpl >
static void Kaskade::Bridge::VectorTraits< VectorImpl >::read ( VectorImpl &  out,
std::vector< double > const &  in,
int  vbegin,
int  vend 
)
inlinestatic

Definition at line 57 of file newton_bridge.hh.

Referenced by Kaskade::Bridge::Vector< Implementation >::read().

◆ scale()

template<class VectorImpl >
static void Kaskade::Bridge::VectorTraits< VectorImpl >::scale ( VectorImpl &  out,
std::vector< double > const &  lambda 
)
inlinestatic

Definition at line 97 of file newton_bridge.hh.

◆ write()

template<class VectorImpl >
static void Kaskade::Bridge::VectorTraits< VectorImpl >::write ( VectorImpl const &  in,
std::vector< double > &  out,
int  vbegin,
int  vend 
)
inlinestatic

◆ writeToFile()

template<class VectorImpl >
static void Kaskade::Bridge::VectorTraits< VectorImpl >::writeToFile ( std::string const &  name,
bool  append,
VectorImpl const &  x 
)
inlinestatic

Definition at line 75 of file newton_bridge.hh.

Member Data Documentation

◆ nComponents

template<class VectorImpl >
const int Kaskade::Bridge::VectorTraits< VectorImpl >::nComponents = 1
static

Definition at line 55 of file newton_bridge.hh.


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