TiledArray::detail::dist_subarray_vec< Array > Class Template Reference
Inheritance diagram for TiledArray::detail::dist_subarray_vec< Array >:
Collaboration diagram for TiledArray::detail::dist_subarray_vec< Array >:

Documentation

template<typename Array>
class TiledArray::detail::dist_subarray_vec< Array >

global view of a tilewise-round-robin distributed std::vector of Arrays

Definition at line 224 of file vector_of_arrays.h.

Public Types

using Tile = typename Array::value_type
 
using Policy = typename Array::policy_type
 

Public Member Functions

 dist_subarray_vec (madness::World &world, const std::vector< Array > &array, const std::size_t rank)
 
virtual ~dist_subarray_vec ()
 
template<typename Index >
madness::Future< Tileget_tile (int r, Index &i)
 
const std::vector< Array > & array_accessor () const
 
unsigned long size () const
 

Member Typedef Documentation

◆ Policy

template<typename Array >
using TiledArray::detail::dist_subarray_vec< Array >::Policy = typename Array::policy_type

Definition at line 228 of file vector_of_arrays.h.

◆ Tile

template<typename Array >
using TiledArray::detail::dist_subarray_vec< Array >::Tile = typename Array::value_type

Definition at line 227 of file vector_of_arrays.h.

Constructor & Destructor Documentation

◆ dist_subarray_vec()

template<typename Array >
TiledArray::detail::dist_subarray_vec< Array >::dist_subarray_vec ( madness::World &  world,
const std::vector< Array > &  array,
const std::size_t  rank 
)
inline
Parameters
worldworld object that contains all the worlds which arrays in split_array live in
arraypossibly distributed vector of arrays
ranktotal number of Arrays (sum of arrays per process for each processor)

Definition at line 235 of file vector_of_arrays.h.

◆ ~dist_subarray_vec()

template<typename Array >
virtual TiledArray::detail::dist_subarray_vec< Array >::~dist_subarray_vec ( )
inlinevirtual

Definition at line 243 of file vector_of_arrays.h.

Member Function Documentation

◆ array_accessor()

template<typename Array >
const std::vector<Array>& TiledArray::detail::dist_subarray_vec< Array >::array_accessor ( ) const
inline
Returns
Accessor to split_array

Definition at line 255 of file vector_of_arrays.h.

Here is the caller graph for this function:

◆ get_tile()

template<typename Array >
template<typename Index >
madness::Future<Tile> TiledArray::detail::dist_subarray_vec< Array >::get_tile ( int  r,
Index &  i 
)
inline

Tile accessor for distributed arrays

Parameters
rindex of the requested array in split_array
itile index for the r array in split_array
Returns
i -th tile of the r -th array in split_array

Definition at line 250 of file vector_of_arrays.h.

◆ size()

template<typename Array >
unsigned long TiledArray::detail::dist_subarray_vec< Array >::size ( ) const
inline
Returns
number of Array in split_array

Definition at line 258 of file vector_of_arrays.h.


The documentation for this class was generated from the following file: