TiledArray  0.7.0
dense_policy.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  * Justus Calvin
19  * Department of Chemistry, Virginia Tech
20  *
21  * dense_array.h
22  * Jul 9, 2013
23  *
24  */
25 
26 #ifndef TILEDARRAY_DENSE_ARRAY_H__INCLUDED
27 #define TILEDARRAY_DENSE_ARRAY_H__INCLUDED
28 
29 #include <TiledArray/tiled_range.h>
31 #include <TiledArray/dense_shape.h>
32 
33 namespace TiledArray {
34 
35  // Forward declarations
36  class DenseShape;
37 
38  class DensePolicy {
39  public:
46 
48 
52  static std::shared_ptr<pmap_interface>
53  default_pmap(World& world, const std::size_t size) {
54  return std::make_shared<default_pmap_type>(world, size);
55  }
56 
57  }; // class DensePolicy
58 
59 } // namespace TiledArray
60 
61 #endif // TILEDARRAY_DENSE_ARRAY_H__INCLUDED
A (hyperrectangular) interval on , space of integer n-indices.
Definition: range.h:39
Process map.
Definition: pmap.h:46
range_type::size_type size_type
Definition: dense_policy.h:42
TiledArray::detail::BlockedPmap default_pmap_type
Definition: dense_policy.h:45
static std::shared_ptr< pmap_interface > default_pmap(World &world, const std::size_t size)
Create a default process map.
Definition: dense_policy.h:53
TiledArray::DenseShape shape_type
Definition: dense_policy.h:43
size_t size(const DistArray< Tile, Policy > &a)
Definition: utils.h:49
Dense shape of an array.
Definition: dense_shape.h:54
A blocked process map.
Definition: blocked_pmap.h:38
Range data of a tiled array.
Definition: tiled_range.h:31
std::size_t size_type
Size type.
Definition: range.h:42
TiledArray::TiledRange trange_type
Definition: dense_policy.h:40
TiledArray::Pmap pmap_interface
Definition: dense_policy.h:44
trange_type::range_type range_type
Definition: dense_policy.h:41