Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
CTF_int::mapping Class Reference

#include <mapping.h>

Collaboration diagram for CTF_int::mapping:

Public Member Functions

 mapping ()
 constructor More...
 
 ~mapping ()
 destructor More...
 
 mapping (mapping const &other)
 copy constructor More...
 
mappingoperator= (mapping const &other)
 
int calc_phase () const
 compute the phase of a mapping More...
 
int calc_phys_phase () const
 compute the physical phase of a mapping More...
 
int calc_phys_rank (topology const *topo) const
 compute the physical rank of a mapping More...
 
void clear ()
 resets mapping to NOT_MAPPED More...
 
void aug_phys (topology const *topo, int idim)
 adds a physical mapping to this mapping More...
 
void aug_virt (int tot_phase)
 augments mapping to have sufficient virtualization so that the total phas is exactly tot_phase (assumes tot_phase is not current phase) More...
 

Data Fields

map_type type
 
int np
 
int cdt
 
int has_child
 
mappingchild
 

Detailed Description

Definition at line 20 of file mapping.h.

Constructor & Destructor Documentation

CTF_int::mapping::mapping ( )
CTF_int::mapping::~mapping ( )

destructor

Definition at line 17 of file mapping.cxx.

References clear().

CTF_int::mapping::mapping ( mapping const &  other)

copy constructor

Definition at line 21 of file mapping.cxx.

References cdt, child, has_child, mapping(), np, and type.

Member Function Documentation

void CTF_int::mapping::aug_phys ( topology const *  topo,
int  idim 
)

adds a physical mapping to this mapping

Parameters
[in]topotopology to map to
[in]idimdimension of topology to map to

Definition at line 104 of file mapping.cxx.

References cdt, child, clear(), has_child, CTF_int::topology::lens, mapping(), CTF_int::NOT_MAPPED, np, CTF_int::PHYSICAL_MAP, and type.

Referenced by CTF_int::get_len_ordering().

void CTF_int::mapping::aug_virt ( int  tot_phase)

augments mapping to have sufficient virtualization so that the total phas is exactly tot_phase (assumes tot_phase is not current phase)

Parameters
[in]tot_phasethe desired total phase

Definition at line 117 of file mapping.cxx.

References ASSERT, child, has_child, mapping(), CTF_int::NOT_MAPPED, np, CTF_int::PHYSICAL_MAP, type, and CTF_int::VIRTUAL_MAP.

Referenced by CTF_int::get_len_ordering().

void CTF_int::mapping::clear ( )
mapping & CTF_int::mapping::operator= ( mapping const &  other)

Definition at line 29 of file mapping.cxx.

References cdt, child, has_child, mapping(), np, and type.

Field Documentation


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