|
TiledArray
0.7.0
|
Tensor expression object. More...
#include <dist_eval.h>
Public Types | |
| typedef DistEval< Tile, Policy > | DistEval_ |
| This class type. More... | |
| typedef DistEvalImpl< Tile, Policy > | impl_type |
| Implementation base class type. More... | |
| typedef impl_type::size_type | size_type |
| Size type. More... | |
| typedef impl_type::trange_type | trange_type |
| Tiled range type for this object. More... | |
| typedef impl_type::range_type | range_type |
| Range type this tensor. More... | |
| typedef impl_type::shape_type | shape_type |
| Tensor shape type. More... | |
| typedef impl_type::pmap_interface | pmap_interface |
| Process map interface type. More... | |
| typedef impl_type::value_type | value_type |
| Tile type. More... | |
| typedef impl_type::eval_type | eval_type |
| Tile evaluation type. More... | |
| typedef Future< value_type > | future |
| Future of tile type. More... | |
Public Member Functions | |
| template<typename Impl > | |
| DistEval (const std::shared_ptr< Impl > &pimpl) | |
| Constructor. More... | |
| DistEval (const DistEval_ &other) | |
| Copy constructor. More... | |
| DistEval_ & | operator= (const DistEval_ &other) |
| Assignment operator. More... | |
| void | eval () |
| Evaluate this tensor object with the given result variable list. More... | |
| const range_type & | range () const |
| Tensor tile size array accessor. More... | |
| size_type | size () const |
| Tensor tile volume accessor. More... | |
| ProcessID | owner (size_type i) const |
| Query a tile owner. More... | |
| bool | is_local (size_type i) const |
| Query for a locally owned tile. More... | |
| bool | is_zero (size_type i) const |
| Query for a zero tile. More... | |
| const std::shared_ptr< pmap_interface > & | pmap () const |
| Tensor process map accessor. More... | |
| bool | is_dense () const |
| Query the density of the tensor. More... | |
| const shape_type & | shape () const |
| Tensor shape accessor. More... | |
| const trange_type & | trange () const |
| Tiled range accessor. More... | |
| future | get (size_type i) const |
| Tile move. More... | |
| virtual void | discard (size_type i) const |
| Discard a tile that is not needed. More... | |
| World & | world () const |
| World object accessor. More... | |
| madness::uniqueidT | id () const |
| Unique object id. More... | |
| void | wait () const |
| Wait for all local tiles to be evaluated. More... | |
Tensor expression object.
This object holds a tensor expression. It is used to store various type of tensor expressions that depend on the pimpl used to construct the expression.
| Tile | The output tile type |
| Policy | The tensor policy class |
Definition at line 241 of file dist_eval.h.
| typedef DistEval<Tile, Policy> TiledArray::detail::DistEval< Tile, Policy >::DistEval_ |
This class type.
Definition at line 243 of file dist_eval.h.
| typedef impl_type::eval_type TiledArray::detail::DistEval< Tile, Policy >::eval_type |
Tile evaluation type.
Definition at line 251 of file dist_eval.h.
| typedef Future<value_type> TiledArray::detail::DistEval< Tile, Policy >::future |
Future of tile type.
Definition at line 252 of file dist_eval.h.
| typedef DistEvalImpl<Tile, Policy> TiledArray::detail::DistEval< Tile, Policy >::impl_type |
Implementation base class type.
Definition at line 244 of file dist_eval.h.
| typedef impl_type::pmap_interface TiledArray::detail::DistEval< Tile, Policy >::pmap_interface |
Process map interface type.
Definition at line 249 of file dist_eval.h.
| typedef impl_type::range_type TiledArray::detail::DistEval< Tile, Policy >::range_type |
Range type this tensor.
Definition at line 247 of file dist_eval.h.
| typedef impl_type::shape_type TiledArray::detail::DistEval< Tile, Policy >::shape_type |
Tensor shape type.
Definition at line 248 of file dist_eval.h.
| typedef impl_type::size_type TiledArray::detail::DistEval< Tile, Policy >::size_type |
Size type.
Definition at line 245 of file dist_eval.h.
| typedef impl_type::trange_type TiledArray::detail::DistEval< Tile, Policy >::trange_type |
Tiled range type for this object.
Definition at line 246 of file dist_eval.h.
| typedef impl_type::value_type TiledArray::detail::DistEval< Tile, Policy >::value_type |
Tile type.
Definition at line 250 of file dist_eval.h.
|
inline |
Constructor.
| pimpl | A pointer to the expression implementation object |
Definition at line 262 of file dist_eval.h.
|
inline |
Copy constructor.
Create a shallow copy of other .
| other | The object to be copied. |
Definition at line 272 of file dist_eval.h.
|
inlinevirtual |
Discard a tile that is not needed.
This function handles the cleanup for tiles that are not needed in subsequent computation.
| i | The index of the tile |
Definition at line 351 of file dist_eval.h.
|
inline |
Evaluate this tensor object with the given result variable list.
v is the dimension ordering that the parent expression expects. The returned future will be evaluated once the tensor has been evaluated.
Definition at line 288 of file dist_eval.h.
|
inline |
Tile move.
Tile is removed after it is set.
| i | The tile index |
i Definition at line 344 of file dist_eval.h.
|
inline |
|
inline |
Query the density of the tensor.
true if the tensor is dense, otherwise false Definition at line 327 of file dist_eval.h.
|
inline |
Query for a locally owned tile.
| i | The tile index to query |
true if the tile is owned by this node, otherwise false Definition at line 311 of file dist_eval.h.
|
inline |
Query for a zero tile.
| i | The tile index to query |
true if the tile is zero, otherwise false Definition at line 317 of file dist_eval.h.
|
inline |
Assignment operator.
Create a shallow copy of other
| other | The object to be copied |
Definition at line 279 of file dist_eval.h.
|
inline |
Query a tile owner.
| i | The tile index to query |
i Definition at line 305 of file dist_eval.h.
|
inline |
Tensor process map accessor.
Definition at line 322 of file dist_eval.h.
|
inline |
Tensor tile size array accessor.
Definition at line 294 of file dist_eval.h.
|
inline |
Tensor shape accessor.
Definition at line 332 of file dist_eval.h.
|
inline |
Tensor tile volume accessor.
Definition at line 299 of file dist_eval.h.
|
inline |
Tiled range accessor.
Definition at line 337 of file dist_eval.h.
|
inline |
Wait for all local tiles to be evaluated.
Definition at line 364 of file dist_eval.h.
|
inline |
World object accessor.
Definition at line 356 of file dist_eval.h.