C++QEDCore  v2 Milestone 10
a framework for simulating open quantum dynamics – core
BlitzTiny.h
Go to the documentation of this file.
1 // Copyright András Vukics 2006–2014. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.txt)
2 // -*- C++ -*-
4 #ifndef CPPQEDCORE_UTILS_BLITZTINY_H_INCLUDED
5 #define CPPQEDCORE_UTILS_BLITZTINY_H_INCLUDED
6 
7 #include <blitz/array.h>
8 
9 #include <boost/mpl/int.hpp>
10 
11 
12 namespace blitzplusplus {
13 
14 
16 template<typename V>
18 
20 template<typename T, int LENGTH>
21 struct TinyVectorLengthTraits<blitz::TinyVector<T,LENGTH> > : boost::mpl::int_<LENGTH> {};
25 } // blitzplusplus
26 
27 
29 template <int RANK> using ExtTiny=blitz::TinyVector< size_t,RANK>;
30 
32 template <int RANK> using IdxTiny=blitz::TinyVector<ptrdiff_t,RANK>;
33 
34 #endif // CPPQEDCORE_UTILS_BLITZTINY_H_INCLUDED
An indirection for accessing lengths of blitz::TinyVector at compile time.
Definition: BlitzTiny.h:17
blitz::TinyVector< ptrdiff_t, RANK > IdxTiny
A tiny vector used for indexing of objects of arbitrary arity.
Definition: BlitzTiny.h:32
blitz::TinyVector< size_t, RANK > ExtTiny
A tiny vector describing extensions of objects of arbitrary arity.
Definition: BlitzTiny.h:29
Comprises our own extensions to Blitz++.