MADNESS  version 0.9
Classes | Namespaces | Functions
array.h File Reference
#include <madness/madness_config.h>
#include <madness/world/worldexc.h>
#include <madness/world/worldhash.h>
#include <madness/world/stdarray.h>
#include <vector>
#include <algorithm>
#include <iostream>
Include dependency graph for array.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  madness::archive::ArchiveStoreImpl< Archive, T >
 Default store of a thingy via serialize(ar,t) More...
 
struct  madness::archive::ArchiveLoadImpl< Archive, T >
 Default load of a thingy via serialize(ar,t) More...
 
struct  madness::archive::ArchiveStoreImpl< Archive, std::array< T, N > >
 
struct  madness::archive::ArchiveLoadImpl< Archive, std::array< T, N > >
 
class  madness::Vector< T, N >
 A simple, fixed dimension Coordinate. More...
 
class  madness::Stack< T, N >
 A simple, fixed-size, stack. More...
 

Namespaces

 madness
 Holds machinery to set up Functions/FuncImpls using various Factories and Interfaces.
 
 madness::archive
 

Functions

template<typename T , std::size_t N>
std::ostream & madness::operator<< (std::ostream &s, const std::array< T, N > &a)
 Output std::array to stream for human consumption. More...
 
template<typename T , std::size_t N>
madness::hashT madness::hash_value (const std::array< T, N > &a)
 Hash std::array with madness::Hash. More...
 
template<typename T , std::size_t N>
void madness::swap (Vector< T, N > &l, Vector< T, N > &r)
 
template<typename T , std::size_t N, typename U >
Vector< T, Nmadness::operator* (Vector< T, N > l, U r)
 Scale a coordinate. More...
 
template<typename T , typename U , std::size_t N>
Vector< T, Nmadness::operator* (T l, Vector< U, N > r)
 Scale a Vector. More...
 
template<typename T , std::size_t N, typename U >
Vector< T, Nmadness::operator* (Vector< T, N > l, const Vector< U, N > &r)
 Multiply two Vector objects. More...
 
template<typename T , std::size_t N, typename U >
Vector< T, Nmadness::operator+ (Vector< T, N > l, U r)
 Add a scalar to a Vector. More...
 
template<typename T , std::size_t N, typename U >
Vector< T, Nmadness::operator+ (Vector< T, N > l, const Vector< U, N > &r)
 Add two Vector opbjects. More...
 
template<typename T , std::size_t N, typename U >
Vector< T, Nmadness::operator- (Vector< T, N > l, U r)
 Subtract a scalar from a Vector. More...
 
template<typename T , std::size_t N, typename U >
Vector< T, Nmadness::operator- (Vector< T, N > l, const Vector< U, N > &r)
 Subtract two Vector. More...
 
template<typename T , std::size_t N>
madness::norm (Vector< T, N > v)
 Compute norm of a Vector. More...
 
template<typename T >
Vector< T, 1 > madness::vec (T x)
 Your friendly neighborhood factory function. More...
 
template<typename T >
Vector< T, 2 > madness::vec (T x, T y)
 Your friendly neighborhood factory function. More...
 
template<typename T >
Vector< T, 3 > madness::vec (T x, T y, T z)
 Your friendly neighborhood factory function. More...
 
template<typename T >
Vector< T, 4 > madness::vec (T x, T y, T z, T xx)
 Your friendly neighborhood factory function. More...
 
template<typename T >
Vector< T, 5 > madness::vec (T x, T y, T z, T xx, T yy)
 Your friendly neighborhood factory function. More...
 
template<typename T >
Vector< T, 6 > madness::vec (T x, T y, T z, T xx, T yy, T zz)
 Your friendly neighborhood factory function. More...
 
template<typename T , std::size_t NDIM>
Vector< T, NDIMmadness::n12 (const Vector< T, NDIM > &r, const double eps=1.e-6)
 helper function unit vector in direction r More...
 
template<typename T >
std::array< T, 1 > madness::array_factory (const T &v0)
 Returns a Vector<T,1> initialized from the arguments. More...
 
template<typename T >
std::array< T, 2 > madness::array_factory (const T &v0, const T &v1)
 Returns a Vector<T,2> initialized from the arguments. More...
 
template<typename T >
std::array< T, 3 > madness::array_factory (const T &v0, const T &v1, const T &v2)
 Returns a Vector<T,3> initialized from the arguments. More...
 
template<typename T >
std::array< T, 4 > madness::array_factory (const T &v0, const T &v1, const T &v2, const T &v3)
 Returns a Vector<T,4> initialized from the arguments. More...
 
template<typename T >
std::array< T, 5 > madness::array_factory (const T &v0, const T &v1, const T &v2, const T &v3, const T &v4)
 Returns a Vector<T,5> initialized from the arguments. More...
 
template<typename T >
std::array< T, 6 > madness::array_factory (const T &v0, const T &v1, const T &v2, const T &v3, const T &v4, const T &v5)
 Returns a Vector<T,6> initialized from the arguments. More...