TiledArray  0.7.0
shape.h
Go to the documentation of this file.
1 /*
2  * This file is a part of TiledArray.
3  * Copyright (C) 2013 Virginia Tech
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  *
18  */
19 
20 #ifndef TILEDARRAY_SHAPE_H__INCLUDED
21 #define TILEDARRAY_SHAPE_H__INCLUDED
22 
24 #include <TiledArray/dense_shape.h>
25 
26 namespace TiledArray {
27 
28  template <typename, typename> class DistArray;
29 
31  template <typename S>
32  struct is_dense : public std::false_type { };
33 
34  template <>
35  struct is_dense<DenseShape> : public std::true_type { };
36 
37  template <typename Tile, typename Policy>
38  struct is_dense<DistArray<Tile, Policy> > :
39  public is_dense<typename DistArray<Tile, Policy>::shape_type>
40  { };
41 
42 } // namespace TiledArray
43 
44 #endif // TILEDARRAY_SHAPE_H__INCLUDED
Dense shape of an array.
Definition: dense_shape.h:54
Type trait to detect dense shape types.
Definition: shape.h:32
Forward declarations.
Definition: clone.h:32
An N-dimensional shallow copy wrapper for tile objects.
Definition: tile.h:80