Grid 0.7.0
VectorUtils.h File Reference
#include <type_traits>
#include <Grid/tensors/Tensors.h>

Go to the source code of this file.

Data Structures

struct  Grid::NestedStdVector< T, Rank >
struct  Grid::NestedStdVector< T, 0 >
struct  Grid::TensorToVec< T >
struct  Grid::TensorToVec< iScalar< T > >
struct  Grid::TensorToVec< iVector< T, N > >
struct  Grid::TensorToVec< iMatrix< T, N > >
struct  Grid::is_flattenable< T, V >
struct  Grid::is_flattenable< T, typename std::enable_if< isGridTensor< T >::value >::type >
struct  Grid::is_flattenable< std::vector< T >, typename std::enable_if< is_flattenable< T >::children_flattenable >::type >
class  Grid::Flatten< V >
class  Grid::Reconstruct< V >

Namespaces

namespace  Grid

Functions

template<typename T1, typename T2>
std::istream & Grid::operator>> (std::istream &is, std::pair< T1, T2 > &buf)
template<class T1, class T2>
std::ostream & Grid::operator<< (std::ostream &os, const std::pair< T1, T2 > &p)
template<typename T>
void Grid::tensorDim (std::vector< size_t > &dim, const T &t, const bool wipe=true)
template<typename T>
void Grid::tensorDim (std::vector< size_t > &dim, const iScalar< T > &t, const bool wipe=true)
template<typename T, int N>
void Grid::tensorDim (std::vector< size_t > &dim, const iVector< T, N > &t, const bool wipe=true)
template<typename T, int N>
void Grid::tensorDim (std::vector< size_t > &dim, const iMatrix< T, N > &t, const bool wipe=true)
template<typename T>
TensorToVec< T >::type Grid::tensorToVec (const T &t)
template<typename T>
TensorToVec< iScalar< T > >::type Grid::tensorToVec (const iScalar< T > &t)
template<typename T, int N>
TensorToVec< iVector< T, N > >::type Grid::tensorToVec (const iVector< T, N > &t)
template<typename T, int N>
TensorToVec< iMatrix< T, N > >::type Grid::tensorToVec (const iMatrix< T, N > &t)
template<typename T>
void Grid::vecToTensor (T &t, const typename TensorToVec< T >::type &v)
template<typename T>
void Grid::vecToTensor (iScalar< T > &t, const typename TensorToVec< iScalar< T > >::type &v)
template<typename T, int N>
void Grid::vecToTensor (iVector< T, N > &t, const typename TensorToVec< iVector< T, N > >::type &v)
template<typename T, int N>
void Grid::vecToTensor (iMatrix< T, N > &t, const typename TensorToVec< iMatrix< T, N > >::type &v)
template<typename T>
std::vector< T > Grid::strToVec (const std::string s)
template<class T>
std::ostream & Grid::operator<< (std::ostream &os, const std::vector< T > &v)
template<typename T>
bool Grid::isRegularShapeHelper (const std::vector< T > &, std::vector< std::size_t > &, int, bool)
template<typename T>
bool Grid::isRegularShapeHelper (const std::vector< std::vector< T > > &v, std::vector< std::size_t > &Dims, int Depth, bool bFirst)
template<typename T>
bool Grid::isRegularShape (const T &t)
template<typename T>
bool Grid::isRegularShape (const std::vector< T > &v)
template<typename T>
bool Grid::isRegularShape (const std::vector< std::vector< T > > &v)
template<typename T>
std::string vecToStr (const std::vector< T > &v)

Function Documentation

◆ vecToStr()

template<typename T>
std::string vecToStr ( const std::vector< T > & v)

Definition at line 564 of file VectorUtils.h.