SyTen
dynarray.h File Reference

Simple wrapper around malloc/free. More...

#include <boost/serialization/split_member.hpp>
#include "inc/util/envvars.h"
#include "inc/util/l_malloc.h"
#include "inc/util/le_malloc.h"
#include "inc/util/memory_size.h"
#include "inc/util/types.h"
#include "inc/util/scalars.h"
#include "inc/util/boost_versioning.h"
#include "inc/util/macros.h"
#include "inc/util/log.h"
+ Include dependency graph for dynarray.h:
+ This graph shows which files directly or indirectly include this file:

Classes

class  syten::DynArray< Type >
 "Light" version of std::vector that supports malloc() allocation. More...
 

Namespaces

 syten
 The topmost namespace for this project.
 

Enumerations

enum  syten::Init : char { syten::Init::Yes, syten::Init::No }
 Specification whether we should use placement new after allocation. More...
 

Functions

template<typename Scalar >
void syten::addScaled (Scalar *a, Scalar const *b, typename IdentityType< Scalar >::type const factor, Size sz)
 \( A_i \leftarrow A_i + f B_i \), adds b scaled by factor to a More...
 
template<typename Scalar >
void syten::addScaled (DynArray< Scalar > &a, DynArray< Scalar > const &b, typename IdentityType< Scalar >::type const factor)
 \( A_i \leftarrow A_i + f B_i \), adds b scaled by factor to a More...
 
template<>
void syten::addScaled< double > (double *a, double const *b, double const factor, Size sz)
 
template<>
void syten::addScaled< float > (float *a, float const *b, float const factor, Size sz)
 
template<>
void syten::addScaled< std::complex< double > > (std::complex< double > *a, std::complex< double > const *b, std::complex< double > const factor, Size sz)
 
template<>
void syten::addScaled< std::complex< float > > (std::complex< float > *a, std::complex< float > const *b, std::complex< float > const factor, Size sz)
 
template<typename Scalar >
Scalar syten::dot (DynArray< Scalar > const &a, DynArray< Scalar > const &b, bool const conjugate)
 Calculates the scalar product of two DynArray's. More...
 
template<>
double syten::dot< double > (DynArray< double > const &a, DynArray< double > const &b, bool const)
 
template<>
float syten::dot< float > (DynArray< float > const &a, DynArray< float > const &b, bool const)
 
template<>
std::complex< double > syten::dot< std::complex< double > > (DynArray< std::complex< double > > const &a, DynArray< std::complex< double > > const &b, bool const conjugate)
 
template<>
std::complex< float > syten::dot< std::complex< float > > (DynArray< std::complex< float > > const &a, DynArray< std::complex< float > > const &b, bool const conjugate)
 
template<typename Type >
std::ostreamsyten::operator<< (std::ostream &out, DynArray< Type > const &a)
 Formatted output of a DynArray, using square brackets. More...
 
template<typename Type >
std::ostreamsyten::operator<< (std::ostream &out, Verbose< DynArray< Type > > const &a)
 Formatted verbose output of a DynArray, using square brackets. More...
 
template<typename ScalarA , typename ScalarB >
void syten::scale (DynArray< ScalarA > &a, ScalarB const b)
 Scales all elements of a in-place by the scalar factor b. More...
 
template<>
void syten::scale< double, double > (DynArray< double > &a, double const b)
 
template<>
void syten::scale< float, float > (DynArray< float > &a, float const b)
 
template<>
void syten::scale< std::complex< double >, double > (DynArray< std::complex< double > > &a, double const b)
 
template<>
void syten::scale< std::complex< float >, float > (DynArray< std::complex< float > > &a, float const b)
 

Detailed Description

Simple wrapper around malloc/free.