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/dense_shape.h>
31 #include <TiledArray/tiled_range.h>
32 
33 namespace TiledArray {
34 
35 // Forward declarations
36 class DenseShape;
37 
38 class DensePolicy {
39  public:
47 
49 
53  static std::shared_ptr<pmap_interface> default_pmap(World& world,
54  const std::size_t size) {
55  return std::make_shared<default_pmap_type>(world, size);
56  }
57 
58 }; // class DensePolicy
59 
60 } // namespace TiledArray
61 
62 #endif // TILEDARRAY_DENSE_ARRAY_H__INCLUDED
TA_1INDEX_TYPE index1_type
Definition: range.h:49
range_type::index1_type index1_type
Definition: dense_policy.h:42
TiledArray::TiledRange trange_type
Definition: dense_policy.h:40
range_type::ordinal_type ordinal_type
Definition: dense_policy.h:43
trange_type::range_type range_type
Definition: dense_policy.h:41
TiledArray::detail::BlockedPmap default_pmap_type
Definition: dense_policy.h:46
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
Range data of a tiled array.
Definition: tiled_range.h:32
Dense shape of an array.
Definition: dense_shape.h:53
TiledArray::DenseShape shape_type
Definition: dense_policy.h:44
A blocked process map.
Definition: blocked_pmap.h:38
Process map.
Definition: pmap.h:55
TiledArray::Pmap pmap_interface
Definition: dense_policy.h:45
std::size_t ordinal_type
Ordinal type, to conform to TWG spec.
Definition: range.h:59
A (hyperrectangular) interval on , space of integer -indices.
Definition: range.h:46