| Cyclops Tensor Framework
    parallel arithmetic on multidimensional arrays | 
#include <topology.h>

| Public Member Functions | |
| ~topology () | |
| topology (topology const &other) | |
| copy constructor  More... | |
| topology (int order_, int const *lens_, CommData cdt, bool activate=false) | |
| constructs torus topology  More... | |
| void | activate () | 
| void | deactivate () | 
| Data Fields | |
| int | order | 
| int * | lens | 
| int * | lda | 
| bool | is_activated | 
| CommData * | dim_comm | 
| CommData | glb_comm | 
Definition at line 14 of file topology.h.
| CTF_int::topology::~topology | ( | ) | 
Definition at line 21 of file topology.cxx.
References CTF_int::cdealloc(), deactivate(), dim_comm, lda, and lens.
| CTF_int::topology::topology | ( | topology const & | other | ) | 
copy constructor
| [in] | other | topology to copy | 
Definition at line 28 of file topology.cxx.
References CTF_int::alloc(), dim_comm, is_activated, lda, lens, and order.
Referenced by CTF_int::get_all_topos(), CTF_int::get_generic_topovec(), CTF_int::get_phys_topo(), CTF_int::peel_perm_torus(), and CTF_int::peel_torus().
| CTF_int::topology::topology | ( | int | order_, | 
| int const * | lens_, | ||
| CommData | cdt, | ||
| bool | activate = false | ||
| ) | 
constructs torus topology
| [in] | order_ | number of torus dimensions | 
| [in] | lens_ | lengths of torus dimensions | 
| [in] | cdt | communicator for whole torus | 
| [in] | activate | whether to create MPI_Comms | 
Definition at line 45 of file topology.cxx.
References activate(), CTF_int::alloc(), dim_comm, glb_comm, is_activated, lda, lens, order, CTF_int::CommData::rank, and ctf.core::rank().
| void CTF_int::topology::activate | ( | ) | 
Definition at line 76 of file topology.cxx.
References CTF_int::CommData::activate(), CTF_int::CommData::cm, dim_comm, glb_comm, is_activated, and order.
Referenced by CTF_int::get_len_ordering(), CTF_int::summation::sum_tensors(), and topology().
| void CTF_int::topology::deactivate | ( | ) | 
Definition at line 85 of file topology.cxx.
References CTF_int::CommData::deactivate(), dim_comm, is_activated, and order.
Referenced by CTF_int::get_len_ordering(), CTF_int::summation::sum_tensors(), and ~topology().
| CommData* CTF_int::topology::dim_comm | 
Definition at line 20 of file topology.h.
Referenced by activate(), CTF_int::mapping::calc_phys_rank(), CTF_int::can_morph(), CTF_int::ctr_2d_gen_build(), CTF_int::ctr_replicate::ctr_replicate(), deactivate(), CTF_int::scaling::execute(), CTF_int::extract_free_comms(), CTF_int::get_len_ordering(), CTF_int::summation::is_equal(), CTF_int::morph_topo(), CTF_int::spctr_replicate::spctr_replicate(), topology(), CTF_int::tspsum_replicate::tspsum_replicate(), CTF_int::tsum_replicate::tsum_replicate(), and ~topology().
| CommData CTF_int::topology::glb_comm | 
Definition at line 21 of file topology.h.
Referenced by activate(), and topology().
| bool CTF_int::topology::is_activated | 
Definition at line 19 of file topology.h.
Referenced by activate(), deactivate(), and topology().
| int* CTF_int::topology::lda | 
Definition at line 18 of file topology.h.
Referenced by CTF_int::can_morph(), CTF_int::distribution::distribution(), CTF_int::morph_topo(), CTF_int::tensor::read_local(), topology(), CTF_int::tensor::write(), and ~topology().
| int* CTF_int::topology::lens | 
Definition at line 17 of file topology.h.
Referenced by CTF_int::mapping::aug_phys(), CTF_int::find_topology(), CTF_int::get_len_ordering(), CTF_int::peel_perm_torus(), CTF_int::peel_torus(), topology(), CTF::World::World(), and ~topology().
| int CTF_int::topology::order | 
Definition at line 16 of file topology.h.
Referenced by ctf.core.tensor::__get__(), ctf.core.tensor::__getitem__(), ctf.core.tensor::__setitem__(), activate(), CTF_int::can_morph(), CTF_int::ctr_replicate::ctr_replicate(), deactivate(), CTF_int::scaling::execute(), CTF_int::extract_free_comms(), CTF_int::find_topology(), CTF_int::get_len_ordering(), CTF_int::get_phys_topo(), ctf.core.tensor::i(), CTF_int::summation::is_equal(), CTF_int::morph_topo(), CTF_int::peel_perm_torus(), CTF_int::peel_torus(), ctf.core.tensor::permute(), CTF_int::spctr_replicate::spctr_replicate(), topology(), ctf.core.tensor::transpose(), CTF_int::tspsum_replicate::tspsum_replicate(), CTF_int::tsum_replicate::tsum_replicate(), and CTF::World::World().