SyTen
syten::SpanImpl Namespace Reference

Implementation namespace for MutSpan and ConstSpan. More...

Classes

class  ConstSpan
 ConstSpan is a non-owning constant reference to a continuous array of objects. More...
 
class  MutSpan
 MutSpan is a non-owning reference to a continuous array of objects which can be mutated through the span. More...
 

Functions

template<typename Scalar >
void conj_copy (ConstSpan< Scalar > const inp, MutSpan< Scalar > out)
 Copies data from inp to out and complex-conjugates it. More...
 
template<typename T >
bool is_sorted (ConstSpan< T > c)
 Returns true if the span is sorted according to operator< (smallest first). More...
 
template<typename T >
std::ostreamoperator<< (std::ostream &out, ConstSpan< T > cs)
 Output for a ConstSpan. More...
 
template<typename T >
std::ostreamoperator<< (std::ostream &out, MutSpan< T > cs)
 Output for a MutSpan. More...
 
template<typename Container , typename T >
bool operator== (ConstSpan< T > const &m, Container const &c)
 Element-wise equality comparison for a ConstSpan with any container. More...
 
template<typename Container , typename T >
bool operator== (Container const &c, ConstSpan< T > const &m)
 Element-wise equality comparison for a ConstSpan with any container. More...
 
template<typename Container , typename T >
bool operator== (Container const &c, MutSpan< T > const &m)
 Element-wise equality comparison for a MutSpan with any container. More...
 
template<typename Container , typename T >
bool operator== (MutSpan< T > const &m, Container const &c)
 Element-wise equality comparison for a MutSpan with any container. More...
 
template<typename T >
void reverse (MutSpan< T > m)
 Reverses the elements in the mutable span m in-place. More...
 

Detailed Description

Implementation namespace for MutSpan and ConstSpan.